diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2021-10-28 12:55:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 18:55:48 +0800 |
commit | f46e67b519eb65f6feb8abd04c5c896bfd2001ea (patch) | |
tree | 52c8aca12501b756d6fd050db41dd8d967ff344a /web_src/js | |
parent | 54243eed8d9f9347785356c5a42510f918a2d258 (diff) | |
download | gitea-f46e67b519eb65f6feb8abd04c5c896bfd2001ea.tar.gz gitea-f46e67b519eb65f6feb8abd04c5c896bfd2001ea.zip |
Move key forms before list and add cancel button (#17432)
* Move GPG form before list and add cancel button
* Move SSH form before list and add cancel button
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/features/common-global.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js index b345afd4cf..04d44d8142 100644 --- a/web_src/js/features/common-global.js +++ b/web_src/js/features/common-global.js @@ -288,8 +288,9 @@ export function initGlobalButtons() { $($(this).data('panel')).show(); }); - $('.hide-panel.button').on('click', function () { + $('.hide-panel.button').on('click', function (event) { $($(this).data('panel')).hide(); + event.preventDefault(); }); $('.show-modal.button').on('click', function () { |