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