mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-22 01:27:48 +08:00
Add possibility to make branch in branch page (#15960)
* Add possibility to make branch in branch page (#15911) Add possibility to make branch in branch page in the area next to Download and Delete buttons. It is a more intuitive place in the interface compared to what is already there. Signed-off-by: Viktor Yakovchuk <viktor@yakovchuk.net> * Update templates/repo/branch/list.tmpl Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
@ -2658,6 +2658,11 @@ $(document).ready(async () => {
|
||||
$('.show-panel.button').on('click', function () {
|
||||
$($(this).data('panel')).show();
|
||||
});
|
||||
$('.show-create-branch-modal.button').on('click', function () {
|
||||
$('#create-branch-form')[0].action = $('#create-branch-form').data('base-action') + $(this).data('branch-from');
|
||||
$('#modal-create-branch-from-span').text($(this).data('branch-from'));
|
||||
$($(this).data('modal')).modal('show');
|
||||
});
|
||||
$('.show-modal.button').on('click', function () {
|
||||
$($(this).data('modal')).modal('show');
|
||||
});
|
||||
|
Reference in New Issue
Block a user