gitlab-org--gitlab-foss/app/assets/javascripts/how_to_merge.js

13 lines
287 B
JavaScript
Raw Normal View History

2017-07-24 15:21:05 +00:00
document.addEventListener('DOMContentLoaded', () => {
const modal = $('#modal_merge_info').modal({
modal: true,
show: false,
});
2017-07-27 08:30:14 +00:00
$('.how_to_merge_link').on('click', () => {
2017-07-24 15:21:05 +00:00
modal.show();
});
2017-07-27 08:30:14 +00:00
$('.modal-header .close').on('click', () => {
2017-07-24 15:21:05 +00:00
modal.hide();
});
});