diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-12-09 00:49:32 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-12-14 16:20:57 +0300 |
commit | 471444e9a1863ac804bc2017bb14274767391b4b (patch) | |
tree | e345267c724205bd903c648b1b5c8e51f3e861da /app/assets/javascripts/notes.js | |
parent | 20803934eefd7c57ff8f519b4bd11a1f503f7c1f (diff) | |
download | gitlab-ce-single-edit-comment-widget.tar.gz |
Fix single note edit form specs.single-edit-comment-widget
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index c46be163b82..13ca455bdb8 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -52,7 +52,7 @@ // We are in the Merge Requests page so we need another edit form for Changes tab if (gl.utils.getPagePath(1) === 'merge_requests') { $('.note-edit-form').clone() - .addClass('mr-discussion-edit-form').insertAfter('.note-edit-form'); + .addClass('mr-note-edit-form').insertAfter('.note-edit-form'); } } @@ -565,10 +565,10 @@ }; Notes.prototype.getEditFormSelector = function($el) { - var selector = '.note-edit-form:not(.mr-discussion-edit-form)'; + var selector = '.note-edit-form:not(.mr-note-edit-form)'; if ($el.parents('#diffs').length) { - selector = '.note-edit-form.mr-discussion-edit-form'; + selector = '.note-edit-form.mr-note-edit-form'; } return selector; |