diff options
author | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-01-26 00:25:41 -0500 |
---|---|---|
committer | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-01-26 00:25:41 -0500 |
commit | 55e031a0d0b3a96b6e4b867d4e934572726bcd63 (patch) | |
tree | bb06ed218105adfe7a9dfc314dc45403b09fefaa /app/assets/javascripts/notes.js.coffee | |
parent | fd33b2cdc04bb25a47019e9f1019a835fe318a04 (diff) | |
download | gitlab-ce-55e031a0d0b3a96b6e4b867d4e934572726bcd63.tar.gz |
Adds feature: Ajax Close/Open updates discussion automatically
Triggers jQuery event
Fixes #5544
Diffstat (limited to 'app/assets/javascripts/notes.js.coffee')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index 53d72be66e3..e12eb857f80 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -64,6 +64,8 @@ class @Notes # fetch notes when tab becomes visible $(document).on "visibilitychange", @visibilityChange + $(document).on "issuable:change", @refresh + cleanBinding: -> $(document).off "ajax:success", ".js-main-target-form" $(document).off "ajax:success", ".js-discussion-note-form" |