Remove delay when hitting Reply... button on page with a lot of discussions
This commit is contained in:
parent
957331bf45
commit
3f2f4bda45
2 changed files with 3 additions and 3 deletions
|
@ -47,8 +47,8 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
setup: function(wrap) {
|
||||
this.input = $('.js-gfm-input');
|
||||
setup: function(input) {
|
||||
this.input = input || $('.js-gfm-input');
|
||||
this.destroyAtWho();
|
||||
this.setupAtWho();
|
||||
if (this.dataSource) {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
this.form.find('.div-dropzone').remove();
|
||||
this.form.addClass('gfm-form');
|
||||
disableButtonIfEmptyField(this.form.find('.js-note-text'), this.form.find('.js-comment-button'));
|
||||
GitLab.GfmAutoComplete.setup();
|
||||
GitLab.GfmAutoComplete.setup(this.form.find('.js-gfm-input'));
|
||||
new DropzoneInput(this.form);
|
||||
autosize(this.textarea);
|
||||
this.addEventListeners();
|
||||
|
|
Loading…
Reference in a new issue