diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-07-24 18:21:05 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-07-24 18:21:05 +0300 |
commit | fef5a4fddd6ba0d152c553ab2b1667497400c062 (patch) | |
tree | de3c835fd6b1c518221326471762c020fb0c711b /app/assets/javascripts/how_to_merge.js | |
parent | c2c8d7ffabaeb6514f7bf15fb5330c8402d80333 (diff) |
How to Merge to external File
Diffstat (limited to 'app/assets/javascripts/how_to_merge.js')
-rw-r--r-- | app/assets/javascripts/how_to_merge.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/javascripts/how_to_merge.js b/app/assets/javascripts/how_to_merge.js new file mode 100644 index 00000000000..f739db751a6 --- /dev/null +++ b/app/assets/javascripts/how_to_merge.js @@ -0,0 +1,12 @@ +document.addEventListener('DOMContentLoaded', () => { + const modal = $('#modal_merge_info').modal({ + modal: true, + show: false, + }); + $('.how_to_merge_link').bind('click', () => { + modal.show(); + }); + $('.modal-header .close').bind('click', () => { + modal.hide(); + }); +}); |