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