summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/how_to_merge.js
blob: 12e6f24595a702b6d3c30978f240baf74ea84925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default () => {
  const modal = $('#modal_merge_info');

  if (modal) {
    modal.modal({
      modal: true,
      show: false,
    });

    $('.how_to_merge_link').on('click', modal.show);
    $('.modal-header .close').on('click', modal.hide);
  }
};