From f46e67b519eb65f6feb8abd04c5c896bfd2001ea Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Thu, 28 Oct 2021 12:55:48 +0200 Subject: 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 Co-authored-by: wxiaoguang --- web_src/js/features/common-global.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web_src') 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 () { -- cgit v1.2.3