summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2017-06-27 16:06:41 +0000
committerClement Ho <ClemMakesApps@gmail.com>2017-06-27 13:04:55 -0500
commit42fac10d77f7b5a7dbad2febf1e1b7d5e95ab407 (patch)
treea02a68e255bdee0333f9d65b09491f3d6f1aa429 /app
parentb2dd17b2f2c0d02c18d5b413d5fefd59b4c9fed1 (diff)
downloadgitlab-ce-42fac10d77f7b5a7dbad2febf1e1b7d5e95ab407.tar.gz
Merge branch '34014-submitting-reply-to-existing-diff-discussion-using-cmd-ctrl-enter-submits-twice-and-refreshes-page' into 'master'
Resolve "Submitting reply to existing diff discussion using Cmd/Ctrl+Enter submits twice and refreshes page" Closes #34014 See merge request !12352
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/behaviors/quick_submit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/behaviors/quick_submit.js b/app/assets/javascripts/behaviors/quick_submit.js
index 1f9e0448084..bc693616460 100644
--- a/app/assets/javascripts/behaviors/quick_submit.js
+++ b/app/assets/javascripts/behaviors/quick_submit.js
@@ -40,7 +40,7 @@ $(document).on('keydown.quick_submit', '.js-quick-submit', (e) => {
e.preventDefault();
const $form = $(e.target).closest('form');
- const $submitButton = $form.find('input[type=submit], button[type=submit]');
+ const $submitButton = $form.find('input[type=submit], button[type=submit]').first();
if (!$submitButton.attr('disabled')) {
$submitButton.trigger('click', [e]);