summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2018-01-11 02:05:46 +0100
committerFatih Acet <acetfatih@gmail.com>2018-01-11 02:05:46 +0100
commit4dcd50d7de2cfdfd160d69c5bbb26687ae003807 (patch)
tree732c0932b3e2f0e64e3424b1320956f7a368e5ef
parentb560b3bc2c1fe431c68b5293e852725ecf891d85 (diff)
downloadgitlab-ce-4dcd50d7de2cfdfd160d69c5bbb26687ae003807.tar.gz
MRNotesRefactor: Fix wrapper el in cookieless version
-rw-r--r--app/assets/javascripts/notes.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js
index 0e6d8b9020d..643648fba53 100644
--- a/app/assets/javascripts/notes.js
+++ b/app/assets/javascripts/notes.js
@@ -105,8 +105,9 @@ export default class Notes {
}
addBinding() {
+ this.$wrapperEl = Cookies.get('vue_mr_discussions') ? $(document).find('.diffs') : $(document);
+
// Edit note link
- this.$wrapperEl = $(document).find('.diffs');
this.$wrapperEl.on('click', '.js-note-edit', this.showEditForm.bind(this));
this.$wrapperEl.on('click', '.note-edit-cancel', this.cancelEdit);
// Reopen and close actions for Issue/MR combined with note form submit