From 2a18425e97023b05aa52c29dbce6c5a7aa7400b7 Mon Sep 17 00:00:00 2001 From: "Luke \"Jared\" Bennett" Date: Thu, 6 Apr 2017 13:04:57 +0100 Subject: phil review changes --- app/assets/javascripts/gl_form.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/assets/javascripts/gl_form.js') diff --git a/app/assets/javascripts/gl_form.js b/app/assets/javascripts/gl_form.js index 1930f93f67e..ff10f19a4fe 100644 --- a/app/assets/javascripts/gl_form.js +++ b/app/assets/javascripts/gl_form.js @@ -29,10 +29,7 @@ GLForm.prototype.setupForm = function() { this.form.find('.div-dropzone').remove(); 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.utils.disableButtonIfEmptyField(this.form.find('.js-note-text'), this.form.find('.js-comment-button, .js-note-new-discussion')); gl.GfmAutoComplete.setup(this.form.find('.js-gfm-input')); new DropzoneInput(this.form); -- cgit v1.2.1