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