diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2021-10-08 18:15:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 18:15:09 +0200 |
commit | 56d79301b9f212e7801cbced1475238cc61c0748 (patch) | |
tree | 7cb9ca6f1c41b8e75123640f0d10ff183ee51251 /web_src | |
parent | 001dbf100de40f19c7ade5b8f013fbcccbe09ec3 (diff) | |
download | gitea-56d79301b9f212e7801cbced1475238cc61c0748.tar.gz gitea-56d79301b9f212e7801cbced1475238cc61c0748.zip |
Move add deploy key form before the list and add a cancel button (#17228)
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index d6787e89bf..868b3ad049 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2750,6 +2750,9 @@ $(document).ready(async () => { $('.show-panel.button').on('click', function () { $($(this).data('panel')).show(); }); + $('.hide-panel.button').on('click', function () { + $($(this).data('panel')).hide(); + }); $('.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')); |