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

13 lines
287 B
JavaScript
Raw Normal View History

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