Don't show comment button in gutter of diffs on MR discussion tab
This commit is contained in:
parent
8ec00fbdd2
commit
94f22826f3
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
||||||
this.render = bind(this.render, this);
|
this.render = bind(this.render, this);
|
||||||
this.VIEW_TYPE = $('input#view[type=hidden]').val();
|
this.VIEW_TYPE = $('input#view[type=hidden]').val();
|
||||||
debounce = _.debounce(this.render, DEBOUNCE_TIMEOUT_DURATION);
|
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) {
|
FilesCommentButton.prototype.render = function(e) {
|
||||||
|
|
Loading…
Reference in a new issue