Commit 4da48868e57fdf5bfd41b680f5452450807c23f5

Authored by Dmitriy Zaporozhets
1 parent 7ab2130c

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 23 $(document).off("click", ".js-note-attachment-input");
24 24 $(document).off("click", ".js-close-discussion-note-form");
25 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 32 $(document).off("ajax:complete", ".js-main-target-form");
27 33  
28 34  
... ...