summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-12-29 12:29:55 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-12-29 12:29:55 +0000
commitb0765d244f7e19955d4f803dde816dc9161a95a5 (patch)
treee824d5611bbcebd399933661d1c63934809ce483
parent58d986f9abe6c5c415a66b38cfc379e3fecd5f8c (diff)
parente74b8bd14873fc5a3586bc41b262f4965f14b43f (diff)
downloadgitlab-ce-b0765d244f7e19955d4f803dde816dc9161a95a5.tar.gz
Merge branch '26134-ctrl-enter-does-not-submit-a-new-merge-request' into 'master'
CTRL+Enter does not submit a new merge request Closes #26134 See merge request !8360
-rw-r--r--app/views/projects/merge_requests/_new_submit.html.haml2
-rw-r--r--changelogs/unreleased/26134-ctrl-enter-does-not-submit-a-new-merge-request.yml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/_new_submit.html.haml b/app/views/projects/merge_requests/_new_submit.html.haml
index 349181be784..34ead6427e0 100644
--- a/app/views/projects/merge_requests/_new_submit.html.haml
+++ b/app/views/projects/merge_requests/_new_submit.html.haml
@@ -10,7 +10,7 @@
%span.pull-right
= link_to 'Change branches', mr_change_branches_path(@merge_request)
%hr
-= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal common-note-form js-requires-input' } do |f|
+= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal common-note-form js-requires-input js-quick-submit' } do |f|
= render 'shared/issuable/form', f: f, issuable: @merge_request
= f.hidden_field :source_project_id
= f.hidden_field :source_branch
diff --git a/changelogs/unreleased/26134-ctrl-enter-does-not-submit-a-new-merge-request.yml b/changelogs/unreleased/26134-ctrl-enter-does-not-submit-a-new-merge-request.yml
new file mode 100644
index 00000000000..40183f8d3fa
--- /dev/null
+++ b/changelogs/unreleased/26134-ctrl-enter-does-not-submit-a-new-merge-request.yml
@@ -0,0 +1,4 @@
+---
+title: Make CTRL+Enter submits a new merge request
+merge_request: 8360
+author: Saad Shahd