diff options
| author | Phil Hughes <me@iamphill.com> | 2016-03-10 17:09:57 +0000 |
|---|---|---|
| committer | Phil Hughes <me@iamphill.com> | 2016-03-18 09:46:20 +0000 |
| commit | 38ea9c6cf7c7c063f841ebe95477e9f48d7bc430 (patch) | |
| tree | b01a4ab50f2e78c8f7e39e54e03f2aac79f28120 /app/assets/javascripts | |
| parent | 021d79e3ac1cfcac875866f1d70176552d1bf159 (diff) | |
| download | gitlab-ce-38ea9c6cf7c7c063f841ebe95477e9f48d7bc430.tar.gz | |
Reused some variables
Set global JS variable to sync view up
Diffstat (limited to 'app/assets/javascripts')
| -rw-r--r-- | app/assets/javascripts/issue.js.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/issue.js.coffee b/app/assets/javascripts/issue.js.coffee index 47db7c63ec6..424c354b755 100644 --- a/app/assets/javascripts/issue.js.coffee +++ b/app/assets/javascripts/issue.js.coffee @@ -91,7 +91,7 @@ class @Issue # hide any participants from number 6 $(".js-participants-author").each (i) -> - if i > 6 + if i >= PARTICIPANTS_ROW $(@) .addClass "js-participants-hidden hidden" @@ -101,7 +101,7 @@ class @Issue currentText = $(this).text().trim() lessText = $(this).data("less-text") originalText = $(this).data("original-text") - + if currentText is originalText $(this).text(lessText) else |
