Commit 99a2b31e98f3934407b782ee4a2d2a26c8ec4e2a
1 parent
92474901
Exists in
spb-stable
and in
3 other branches
Dont allow merge without commit message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/assets/javascripts/merge_requests.js.coffee
@@ -24,6 +24,8 @@ class MergeRequest | @@ -24,6 +24,8 @@ class MergeRequest | ||
24 | 24 | ||
25 | modal = $('#modal_merge_info').modal(show: false) | 25 | modal = $('#modal_merge_info').modal(show: false) |
26 | 26 | ||
27 | + disableButtonIfEmptyField '#merge_commit_message', '.accept_merge_request' | ||
28 | + | ||
27 | # Local jQuery finder | 29 | # Local jQuery finder |
28 | $: (selector) -> | 30 | $: (selector) -> |
29 | this.$el.find(selector) | 31 | this.$el.find(selector) |