diff options
Diffstat (limited to 'web_src/js/features')
-rw-r--r-- | web_src/js/features/admin/common.js | 8 |
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 092cf770be..d023e0bc36 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'); } } |