Skip to content

Commit e67d60d

Browse files
authored
Fix some more hidden problems (#23074) (#23075)
Backport #23074
1 parent 90a7bba commit e67d60d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

templates/admin/auth/edit.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
<input type="checkbox" name="groups_enabled" class="js-ldap-group-toggle" {{if $cfg.GroupsEnabled}}checked{{end}}>
118118
</div>
119119
</div>
120-
<div id="ldap-group-options" class="ui segment secondary" {{if not $cfg.GroupsEnabled}}hidden{{end}}>
120+
<div id="ldap-group-options" class="ui segment secondary {{if not $cfg.GroupsEnabled}}gt-hidden{{end}}">
121121
<div class="field">
122122
<label>{{.locale.Tr "admin.auths.group_search_base"}}</label>
123123
<input name="group_dn" value="{{$cfg.GroupDN}}" placeholder="e.g. ou=group,dc=mydomain,dc=com">

templates/admin/user/edit.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}} {{if DisableGitHooks}}disabled{{end}}>
123123
</div>
124124
</div>
125-
<div class="inline field" {{if or (DisableImportLocal) (.DisableMigrations)}}hidden{{end}}>
125+
<div class="inline field {{if or (DisableImportLocal) (.DisableMigrations)}}gt-hidden{{end}}">
126126
<div class="ui checkbox">
127127
<label><strong>{{.locale.Tr "admin.users.allow_import_local"}}</strong></label>
128128
<input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}} {{if DisableImportLocal}}disabled{{end}}>

web_src/js/features/admin/common.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ export function initAdminCommon() {
5050

5151
function onUsePagedSearchChange() {
5252
if ($('#use_paged_search').prop('checked')) {
53-
showElem($('.search-page-size'))
54-
.find('input').attr('required', 'required');
53+
showElem('.search-page-size');
54+
$('.search-page-size').find('input').attr('required', 'required');
5555
} else {
56-
hideElem($('.search-page-size'))
57-
.find('input').removeAttr('required');
56+
hideElem('.search-page-size');
57+
$('.search-page-size').find('input').removeAttr('required');
5858
}
5959
}
6060

0 commit comments

Comments
 (0)