diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-06-27 16:06:41 +0000 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-27 13:04:55 -0500 |
commit | 42fac10d77f7b5a7dbad2febf1e1b7d5e95ab407 (patch) | |
tree | a02a68e255bdee0333f9d65b09491f3d6f1aa429 /app | |
parent | b2dd17b2f2c0d02c18d5b413d5fefd59b4c9fed1 (diff) | |
download | gitlab-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.js | 2 |
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]); |