From e67d60d3368614c87b3d15ed9948fa17209bb120 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 22 Feb 2023 23:26:48 +0800 Subject: [PATCH] Fix some more hidden problems (#23074) (#23075) Backport #23074 --- templates/admin/auth/edit.tmpl | 2 +- templates/admin/user/edit.tmpl | 2 +- web_src/js/features/admin/common.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 36d335f32364..d64ee188af15 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -117,7 +117,7 @@ -
+
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 7d31eb4d2b9b..5dd1f531fda9 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -122,7 +122,7 @@
-
+
diff --git a/web_src/js/features/admin/common.js b/web_src/js/features/admin/common.js index 092cf770be41..d023e0bc3695 100644 --- a/web_src/js/features/admin/common.js +++ b/web_src/js/features/admin/common.js @@ -50,11 +50,11 @@ export function initAdminCommon() { function onUsePagedSearchChange() { if ($('#use_paged_search').prop('checked')) { - showElem($('.search-page-size')) - .find('input').attr('required', 'required'); + showElem('.search-page-size'); + $('.search-page-size').find('input').attr('required', 'required'); } else { - hideElem($('.search-page-size')) - .find('input').removeAttr('required'); + hideElem('.search-page-size'); + $('.search-page-size').find('input').removeAttr('required'); } }