aboutsummaryrefslogtreecommitdiff
path: root/web_src
diff options
context:
space:
mode:
authorwxiaoguang2023-02-22 23:26:02 +0800
committerGitHub2023-02-22 15:26:02 +0000
commiteb5a55785de39ae7162911f553b132c03ae7b424 (patch)
tree2104c7a5d42bd235b9eedb95adf434264e3766c8 /web_src
parent90a7bba1f2af1b0d0ba762fc2e1f5b3878b7dbe8 (diff)
Fix some more hidden problems (#23074)
Follows #22950
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/admin/common.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web_src/js/features/admin/common.js b/web_src/js/features/admin/common.js
index 092cf770b..d023e0bc3 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');
}
}