Commit 3f2f4bda authored by Douwe Maan's avatar Douwe Maan

Remove delay when hitting Reply... button on page with a lot of discussions

parent 957331bf
No related merge requests found
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
} }
} }
}, },
setup: function(wrap) { setup: function(input) {
this.input = $('.js-gfm-input'); this.input = input || $('.js-gfm-input');
this.destroyAtWho(); this.destroyAtWho();
this.setupAtWho(); this.setupAtWho();
if (this.dataSource) { if (this.dataSource) {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
this.form.find('.div-dropzone').remove(); this.form.find('.div-dropzone').remove();
this.form.addClass('gfm-form'); this.form.addClass('gfm-form');
disableButtonIfEmptyField(this.form.find('.js-note-text'), this.form.find('.js-comment-button')); 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); new DropzoneInput(this.form);
autosize(this.textarea); autosize(this.textarea);
this.addEventListeners(); this.addEventListeners();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment