Commit 4da48868e57fdf5bfd41b680f5452450807c23f5
1 parent
7ab2130c
Exists in
master
and in
4 other branches
Fix multiple trigger on button attachment
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
app/assets/javascripts/notes.js
@@ -23,6 +23,12 @@ var NoteList = { | @@ -23,6 +23,12 @@ var NoteList = { | ||
23 | $(document).off("click", ".js-note-attachment-input"); | 23 | $(document).off("click", ".js-note-attachment-input"); |
24 | $(document).off("click", ".js-close-discussion-note-form"); | 24 | $(document).off("click", ".js-close-discussion-note-form"); |
25 | $(document).off("click", ".js-note-delete"); | 25 | $(document).off("click", ".js-note-delete"); |
26 | + $(document).off("click", ".js-note-edit"); | ||
27 | + $(document).off("click", ".js-note-edit-cancel"); | ||
28 | + $(document).off("click", ".js-note-attachment-delete"); | ||
29 | + $(document).off("click", ".js-choose-note-attachment-button"); | ||
30 | + $(document).off("click", ".js-show-outdated-discussion"); | ||
31 | + | ||
26 | $(document).off("ajax:complete", ".js-main-target-form"); | 32 | $(document).off("ajax:complete", ".js-main-target-form"); |
27 | 33 | ||
28 | 34 |