diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-25 18:46:15 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-25 18:46:15 +0300 |
commit | 887227e0371858d5d048f61bfe0700e4b7ebab58 (patch) | |
tree | 94619d6b051f013c87b7265274468961b3b00036 /app/assets/javascripts/issuable_context.js | |
parent | fe27de8bf124d65013da1d82618a1ab45584ff68 (diff) |
moved some more inline code
removed some global variable comments
Diffstat (limited to 'app/assets/javascripts/issuable_context.js')
-rw-r--r-- | app/assets/javascripts/issuable_context.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/issuable_context.js b/app/assets/javascripts/issuable_context.js index a45ff3fc43e..26392db4b5b 100644 --- a/app/assets/javascripts/issuable_context.js +++ b/app/assets/javascripts/issuable_context.js @@ -4,6 +4,8 @@ import Cookies from 'js-cookie'; import UsersSelect from './users_select'; +const PARTICIPANTS_ROW_COUNT = 7; + (function() { this.IssuableContext = (function() { function IssuableContext(currentUser) { @@ -52,7 +54,7 @@ import UsersSelect from './users_select'; IssuableContext.prototype.initParticipants = function() { $(document).on("click", ".js-participants-more", this.toggleHiddenParticipants); return $(".js-participants-author").each(function(i) { - if (i >= 7) { + if (i >= PARTICIPANTS_ROW_COUNT) { return $(this).addClass("js-participants-hidden").hide(); } }); |