2022-01-28 22:00:11 +01:00
|
|
|
import $ from 'jquery';
|
|
|
|
|
2021-10-16 19:28:04 +02:00
|
|
|
export function initRepoBranchButton() {
|
|
|
|
$('.show-create-branch-modal.button').on('click', function () {
|
2021-11-16 19:18:25 +01:00
|
|
|
$('#create-branch-form')[0].action = $('#create-branch-form').data('base-action') + $(this).data('branch-from-urlcomponent');
|
2021-10-16 19:28:04 +02:00
|
|
|
$('#modal-create-branch-from-span').text($(this).data('branch-from'));
|
2022-01-16 12:19:26 +01:00
|
|
|
$($(this).data('modal')).modal('show');
|
2021-10-16 19:28:04 +02:00
|
|
|
});
|
|
|
|
}
|