summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-03-03 16:51:58 +0000
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-03-03 12:39:50 -0500
commit741cf430f7608846db6fe032de5ea723fc36e316 (patch)
tree22cf9d07987d6b593a5fb2afa95c66c83e596269 /app
parente1bc808746523309476913033b104345c06c4816 (diff)
downloadgitlab-ce-741cf430f7608846db6fe032de5ea723fc36e316.tar.gz
Correcly updates the status of the comment buttons on reload
Closes #5534
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/notes.js.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee
index 3347ab65c90..82a44cb2b57 100644
--- a/app/assets/javascripts/notes.js.coffee
+++ b/app/assets/javascripts/notes.js.coffee
@@ -17,10 +17,10 @@ class @Notes
@noteable_url = document.URL
@notesCountBadge ||= $(".issuable-details").find(".notes-tab .badge")
- @initRefresh()
- @setupMainTargetNoteForm()
@cleanBinding()
@addBinding()
+ @initRefresh()
+ @setupMainTargetNoteForm()
@initTaskList()
addBinding: ->
@@ -37,7 +37,7 @@ class @Notes
# Reopen and close actions for Issue/MR combined with note form submit
$(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)
$(document).on "click", ".js-note-delete", @removeNote