diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-25 22:03:07 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-25 22:03:07 -0600 |
commit | 94f22826f30692f693dbd8f6ccdea91f4dba0bbb (patch) | |
tree | 341ec7be5d6bbe7e5ff9b21d95412a7060edb6c2 /app | |
parent | 8ec00fbdd21d512b9fa4f764f8c92728e4885739 (diff) | |
download | gitlab-ce-94f22826f30692f693dbd8f6ccdea91f4dba0bbb.tar.gz |
Don't show comment button in gutter of diffs on MR discussion tabno-comment-button-on-discussion-diffs
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/files_comment_button.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/files_comment_button.js b/app/assets/javascripts/files_comment_button.js index 09b5eb398d4..b2e49b71fec 100644 --- a/app/assets/javascripts/files_comment_button.js +++ b/app/assets/javascripts/files_comment_button.js @@ -33,7 +33,7 @@ this.render = bind(this.render, this); this.VIEW_TYPE = $('input#view[type=hidden]').val(); debounce = _.debounce(this.render, DEBOUNCE_TIMEOUT_DURATION); - $(document).off('mouseover', LINE_COLUMN_CLASSES).off('mouseleave', LINE_COLUMN_CLASSES).on('mouseover', LINE_COLUMN_CLASSES, debounce).on('mouseleave', LINE_COLUMN_CLASSES, this.destroy); + $(this.filesContainerElement).off('mouseover', LINE_COLUMN_CLASSES).off('mouseleave', LINE_COLUMN_CLASSES).on('mouseover', LINE_COLUMN_CLASSES, debounce).on('mouseleave', LINE_COLUMN_CLASSES, this.destroy); } FilesCommentButton.prototype.render = function(e) { |