diff options
author | Viktor Yakovchuk <viktor@yakovchuk.net> | 2021-05-24 17:57:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 15:57:46 +0100 |
commit | 5285a3e70e0718d0df0b4acaaf41926dcef303fd (patch) | |
tree | 12ef6af2b728ff7112ed476a3158ef8e4568e1d3 /web_src/js/index.js | |
parent | 3aaf64885f47eb65bf7353a5613acfcac786e5b2 (diff) | |
download | gitea-5285a3e70e0718d0df0b4acaaf41926dcef303fd.tar.gz gitea-5285a3e70e0718d0df0b4acaaf41926dcef303fd.zip |
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>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index c3d74b1395..5ba2662ea4 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -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'); }); |