Commit 47b0c6b5 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'comment-button-status-refresh' into 'master'

Correcly updates the status of the comment buttons on reload

Closes #5534 

![comment-reload](/uploads/413df488222cacfb02a5ea7592abfd11/comment-reload.gif)

See merge request !3081
parents 9f0349ae 741cf430
...@@ -17,10 +17,10 @@ class @Notes ...@@ -17,10 +17,10 @@ class @Notes
@noteable_url = document.URL @noteable_url = document.URL
@notesCountBadge ||= $(".issuable-details").find(".notes-tab .badge") @notesCountBadge ||= $(".issuable-details").find(".notes-tab .badge")
@initRefresh()
@setupMainTargetNoteForm()
@cleanBinding() @cleanBinding()
@addBinding() @addBinding()
@initRefresh()
@setupMainTargetNoteForm()
@initTaskList() @initTaskList()
addBinding: -> addBinding: ->
...@@ -37,7 +37,7 @@ class @Notes ...@@ -37,7 +37,7 @@ class @Notes
# Reopen and close actions for Issue/MR combined with note form submit # Reopen and close actions for Issue/MR combined with note form submit
$(document).on "click", ".js-comment-button", @updateCloseButton $(document).on "click", ".js-comment-button", @updateCloseButton
$(document).on "keyup", ".js-note-text", @updateTargetButtons $(document).on "keyup input", ".js-note-text", @updateTargetButtons
# remove a note (in general) # remove a note (in general)
$(document).on "click", ".js-note-delete", @removeNote $(document).on "click", ".js-note-delete", @removeNote
......
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