Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 22:50:26 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 22:50:41 +0300
commit9c4a06a8f91be054e84b658d9dde1a5c556d1c7f (patch)
tree5485f80b303818fcece69fa500df52cb68011963 /app/assets/javascripts/gl_form.js
parent09330dd17c73aefc1c9b8c7295a4b4a0c805a34b (diff)
Fix close buttob bug when toggling dropdown
Diffstat (limited to 'app/assets/javascripts/gl_form.js')
-rw-r--r--app/assets/javascripts/gl_form.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_form.js b/app/assets/javascripts/gl_form.js
index e7c98e16581..1930f93f67e 100644
--- a/app/assets/javascripts/gl_form.js
+++ b/app/assets/javascripts/gl_form.js
@@ -30,6 +30,10 @@ GLForm.prototype.setupForm = function() {
this.form.addClass('gfm-form');
// remove notify commit author checkbox for non-commit notes
gl.utils.disableButtonIfEmptyField(this.form.find('.js-note-text'), this.form.find('.js-comment-button'));
+
+ const newDiscussionToggle = this.form.find('.js-note-new-discussion');
+ if (newDiscussionToggle) gl.utils.disableButtonIfEmptyField(this.form.find('.js-note-text'), newDiscussionToggle);
+
gl.GfmAutoComplete.setup(this.form.find('.js-gfm-input'));
new DropzoneInput(this.form);
autosize(this.textarea);