<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">
<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}}>
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');
}
}