mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 05:36:07 +10:00
Correcly updates the status of the comment buttons on reload
Closes #5534
This commit is contained in:
committed by
Jacob Schatz
parent
e1bc808746
commit
741cf430f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user