Commit dfdf1891 authored by Rémy Coutable's avatar Rémy Coutable

Fix indentation of methods chaining in Coffee

[ci skip]
parent 8a829c97
...@@ -131,8 +131,8 @@ class @Notes ...@@ -131,8 +131,8 @@ class @Notes
@note_ids.push(note.id) @note_ids.push(note.id)
$('ul.main-notes-list') $('ul.main-notes-list')
.append(note.html) .append(note.html)
.syntaxHighlight() .syntaxHighlight()
@initTaskList() @initTaskList()
@updateNotesCount(1) @updateNotesCount(1)
...@@ -178,8 +178,8 @@ class @Notes ...@@ -178,8 +178,8 @@ class @Notes
# Init discussion on 'Discussion' page if it is merge request page # Init discussion on 'Discussion' page if it is merge request page
if $('body').attr('data-page').indexOf('projects:merge_request') is 0 if $('body').attr('data-page').indexOf('projects:merge_request') is 0
$('ul.main-notes-list') $('ul.main-notes-list')
.append(note.discussion_with_diff_html) .append(note.discussion_with_diff_html)
.syntaxHighlight() .syntaxHighlight()
else else
# append new note to all matching discussions # append new note to all matching discussions
discussionContainer.append note_html discussionContainer.append note_html
...@@ -367,8 +367,8 @@ class @Notes ...@@ -367,8 +367,8 @@ class @Notes
### ###
removeNote: (e) => removeNote: (e) =>
noteId = $(e.currentTarget) noteId = $(e.currentTarget)
.closest(".note") .closest(".note")
.attr("id") .attr("id")
# A same note appears in the "Discussion" and in the "Changes" tab, we have # 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, # to remove all. Using $(".note[id='noteId']") ensure we get all the notes,
...@@ -561,5 +561,5 @@ class @Notes ...@@ -561,5 +561,5 @@ class @Notes
updateTaskList: -> updateTaskList: ->
$('form', this).submit() $('form', this).submit()
updateNotesCount: (incrementStep) -> updateNotesCount: (updateCount) ->
@notesCountBadge.text parseInt(@notesCountBadge.text()) + incrementStep @notesCountBadge.text(parseInt(@notesCountBadge.text()) + updateCount)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment