diff options
author | Rémy Coutable <remy@rymai.me> | 2016-01-20 23:24:13 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-01-20 23:24:13 +0100 |
commit | dfdf189135971917fcd0425c53dd27009833f1be (patch) | |
tree | 21d18fd2d4161d0e7bcbc89051814e93831592ac /app/assets | |
parent | 8a829c9738f2d4275b9233a722ffaa2cbb145553 (diff) | |
download | gitlab-ce-dfdf189135971917fcd0425c53dd27009833f1be.tar.gz |
Fix indentation of methods chaining in Coffee
[ci skip]
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index fd6f89be98d..53d72be66e3 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -131,8 +131,8 @@ class @Notes @note_ids.push(note.id) $('ul.main-notes-list') - .append(note.html) - .syntaxHighlight() + .append(note.html) + .syntaxHighlight() @initTaskList() @updateNotesCount(1) @@ -178,8 +178,8 @@ class @Notes # Init discussion on 'Discussion' page if it is merge request page if $('body').attr('data-page').indexOf('projects:merge_request') is 0 $('ul.main-notes-list') - .append(note.discussion_with_diff_html) - .syntaxHighlight() + .append(note.discussion_with_diff_html) + .syntaxHighlight() else # append new note to all matching discussions discussionContainer.append note_html @@ -367,8 +367,8 @@ class @Notes ### removeNote: (e) => noteId = $(e.currentTarget) - .closest(".note") - .attr("id") + .closest(".note") + .attr("id") # A same note appears in the "Discussion" and in the "Changes" tab, we have # to remove all. Using $(".note[id='noteId']") ensure we get all the notes, @@ -561,5 +561,5 @@ class @Notes updateTaskList: -> $('form', this).submit() - updateNotesCount: (incrementStep) -> - @notesCountBadge.text parseInt(@notesCountBadge.text()) + incrementStep + updateNotesCount: (updateCount) -> + @notesCountBadge.text(parseInt(@notesCountBadge.text()) + updateCount) |