diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-02-22 23:26:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 15:26:48 +0000 |
commit | e67d60d3368614c87b3d15ed9948fa17209bb120 (patch) | |
tree | 2104c7a5d42bd235b9eedb95adf434264e3766c8 | |
parent | 90a7bba1f2af1b0d0ba762fc2e1f5b3878b7dbe8 (diff) | |
download | gitea-e67d60d3368614c87b3d15ed9948fa17209bb120.tar.gz gitea-e67d60d3368614c87b3d15ed9948fa17209bb120.zip |
Fix some more hidden problems (#23074) (#23075)
Backport #23074
-rw-r--r-- | templates/admin/auth/edit.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/edit.tmpl | 2 | ||||
-rw-r--r-- | 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 36d335f323..d64ee188af 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -117,7 +117,7 @@ <input type="checkbox" name="groups_enabled" class="js-ldap-group-toggle" {{if $cfg.GroupsEnabled}}checked{{end}}> </div> </div> - <div id="ldap-group-options" class="ui segment secondary" {{if not $cfg.GroupsEnabled}}hidden{{end}}> + <div id="ldap-group-options" class="ui segment secondary {{if not $cfg.GroupsEnabled}}gt-hidden{{end}}"> <div class="field"> <label>{{.locale.Tr "admin.auths.group_search_base"}}</label> <input name="group_dn" value="{{$cfg.GroupDN}}" placeholder="e.g. ou=group,dc=mydomain,dc=com"> diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 7d31eb4d2b..5dd1f531fd 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -122,7 +122,7 @@ <input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}} {{if DisableGitHooks}}disabled{{end}}> </div> </div> - <div class="inline field" {{if or (DisableImportLocal) (.DisableMigrations)}}hidden{{end}}> + <div class="inline field {{if or (DisableImportLocal) (.DisableMigrations)}}gt-hidden{{end}}"> <div class="ui checkbox"> <label><strong>{{.locale.Tr "admin.users.allow_import_local"}}</strong></label> <input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}} {{if DisableImportLocal}}disabled{{end}}> 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'); } } |