From 3e939cec02224752f0c7a3d89cc9dafc861f40af Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 26 Dec 2021 10:40:34 +0800 Subject: [PATCH] Revert "Fix delete u2f keys bug (#18042)" This reverts commit 91f5be889af4081b05d63aadecb1373689e1f57c. --- templates/user/settings/security_u2f.tmpl | 2 +- web_src/js/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/user/settings/security_u2f.tmpl b/templates/user/settings/security_u2f.tmpl index b33c9ae0e6b37..dcc56d8729ffa 100644 --- a/templates/user/settings/security_u2f.tmpl +++ b/templates/user/settings/security_u2f.tmpl @@ -8,7 +8,7 @@ {{range .U2FRegistrations}}
-
diff --git a/web_src/js/index.js b/web_src/js/index.js index 0a0cb129320a6..1b096a31de1e2 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2959,8 +2959,8 @@ $(() => { function showDeletePopup() { const $this = $(this); let filter = ''; - if ($this.attr('modal-id')) { - filter += `#${$this.attr('modal-id')}`; + if ($this.attr('id')) { + filter += `#${$this.attr('id')}`; } const dialog = $(`.delete.modal${filter}`);