diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-06 13:04:57 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-06 13:04:57 +0100 |
commit | 2a18425e97023b05aa52c29dbce6c5a7aa7400b7 (patch) | |
tree | 42360416a8337267dd75493fbde5021a333e6431 /app/assets/javascripts/notes.js | |
parent | 75ac269987a30dc3eedb9ce47c83299abf9b7cd9 (diff) | |
download | gitlab-ce-2a18425e97023b05aa52c29dbce6c5a7aa7400b7.tar.gz |
phil review changes
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index e22232af800..e2fec904d71 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -111,18 +111,10 @@ require('./task_list'); $(document).on("visibilitychange", this.visibilityChange); // when issue status changes, we need to refresh data $(document).on("issuable:change", this.refresh); - - $(document).on('submit', '.js-main-target-form', this.disableDropdown) - // when a key is clicked on the notes return $(document).on("keydown", ".js-note-text", this.keydownNoteText); }; - Notes.prototype.disableDropdown = function(e) { - const $form = $(e.target); - $form.find('.js-note-new-discussion').disable(); - }; - Notes.prototype.cleanBinding = function() { $(document).off("ajax:success", ".js-main-target-form"); $(document).off("ajax:success", ".js-discussion-note-form"); @@ -149,9 +141,9 @@ require('./task_list'); this.commentTypeToggle = new CommentTypeToggle( form.querySelector('.js-comment-type-dropdown .dropdown-toggle'), form.querySelector('.js-comment-type-dropdown .dropdown-menu'), - document.querySelector('.js-main-target-form #note_type'), + form.querySelector('#note_type'), form.querySelector('.js-comment-type-dropdown .js-comment-submit-button'), - document.querySelector('.js-main-target-form .js-note-target-close'), + form.querySelector('.js-note-target-close'), ); this.commentTypeToggle.initDroplab(); |