Commit ce5fca48288043bf1e7077826a9b36a16b3eb5c7
1 parent
08bcf639
Exists in
master
and in
4 other branches
Fix MR modal
Showing
6 changed files
with
11 additions
and
11 deletions
Show diff stats
app/assets/javascripts/merge_requests.js.coffee
... | ... | @@ -22,12 +22,7 @@ class MergeRequest |
22 | 22 | this.$('.show-all-commits').on 'click', => |
23 | 23 | this.showAllCommits() |
24 | 24 | |
25 | - modal = $('#modal_merge_info').modal modal: true, show:false | |
26 | - | |
27 | - $('.how_to_merge_link').bind "click", -> | |
28 | - modal.show() | |
29 | - $('.modal-header .close').bind "click", -> | |
30 | - modal.hide() | |
25 | + modal = $('#modal_merge_info').modal(show: false) | |
31 | 26 | |
32 | 27 | # Local jQuery finder |
33 | 28 | $: (selector) -> | ... | ... |
app/assets/stylesheets/sections/commits.scss
app/views/projects/commits/show.html.haml
app/views/projects/merge_requests/edit.html.haml
app/views/projects/merge_requests/show/_how_to_merge.html.haml
app/views/projects/merge_requests/show/_mr_accept.html.haml
... | ... | @@ -11,7 +11,8 @@ |
11 | 11 | %p |
12 | 12 | You can accept this request automatically. |
13 | 13 | If you still want to do it manually - |
14 | - %strong= link_to "click here", "#", class: "how_to_merge_link vlink", title: "How To Merge" | |
14 | + %strong | |
15 | + = link_to "click here", "#modal_merge_info", class: "how_to_merge_link vlink", title: "How To Merge", "data-toggle" => "modal" | |
15 | 16 | for instructions |
16 | 17 | .accept_group |
17 | 18 | = f.submit "Accept Merge Request", class: "btn btn-create accept_merge_request" |
... | ... | @@ -31,7 +32,7 @@ |
31 | 32 | .automerge_widget.cannot_be_merged{style: "display:none"} |
32 | 33 | .alert.alert-disabled |
33 | 34 | %span |
34 | - = link_to "Show how to merge", "#", class: "how_to_merge_link btn btn-small padded", title: "How To Merge" | |
35 | + = link_to "Show how to merge", "#modal_merge_info", class: "how_to_merge_link btn btn-small padded", title: "How To Merge", "data-toggle" => "modal" | |
35 | 36 | |
36 | 37 | %strong This request can't be merged with GitLab. You should do it manually |
37 | 38 | ... | ... |