diff options
author | Constance Okoghenun <constanceokoghenun@gmail.com> | 2019-01-07 14:41:51 +0100 |
---|---|---|
committer | Constance Okoghenun <constanceokoghenun@gmail.com> | 2019-01-07 14:41:51 +0100 |
commit | 172ef22b6e748b3c2638317de0a0b7d974ae6c2f (patch) | |
tree | bd0aaccb9cffd0ed11d4f1f9223299b2a9a8c62a /app/assets/javascripts | |
parent | 64fcda29f6ed95aa2664f4478b4dc487c3c63459 (diff) | |
download | gitlab-ce-172ef22b6e748b3c2638317de0a0b7d974ae6c2f.tar.gz |
Cancel button for diff notes
Added "cancel" comment button for inline diff notes for commits
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/notes.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 019e1083271..c3443c300e3 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -982,6 +982,10 @@ export default class Notes { // DiffNote form.find('#note_position').val(dataHolder.attr('data-position')); + form + .find('.js-close-discussion-note-form') + .show() + .removeClass('hide'); form.find('.js-note-target-close').remove(); form.find('.js-note-new-discussion').remove(); this.setupNoteForm(form); |