Skip to content

Commit 0d402cc

Browse files
committed
use kebap case for CSS classes
1 parent a75516d commit 0d402cc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

templates/admin/auth/edit.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,19 @@
111111
<div class="inline field">
112112
<div class="ui checkbox">
113113
<label for="team_group_map_enabled"><strong>{{.i18n.Tr "admin.auths.team_group_map_enabled"}}</strong></label>
114-
<input id="team_group_map_enabled" name="team_group_map_enabled" type="checkbox" class="ldap_group_options" {{if $cfg.TeamGroupMapEnabled}}checked{{end}}>
114+
<input id="team_group_map_enabled" name="team_group_map_enabled" type="checkbox" class="ldap-group-options" {{if $cfg.TeamGroupMapEnabled}}checked{{end}}>
115115
</div>
116116
</div>
117117
<div class="inline field">
118118
<div class="ui checkbox">
119119
<label for="team_group_map_removal"><strong>{{.i18n.Tr "admin.auths.team_group_map_removal"}}</strong></label>
120-
<input id="team_group_map_removal" name="team_group_map_removal" type="checkbox" class="ldap_group_options" {{if $cfg.TeamGroupMapRemoval}}checked{{end}}>
120+
<input id="team_group_map_removal" name="team_group_map_removal" type="checkbox" class="ldap-group-options" {{if $cfg.TeamGroupMapRemoval}}checked{{end}}>
121121
</div>
122122
</div>
123123
<div class="inline field">
124124
<div class="ui checkbox">
125125
<label for="groups_enabled"><strong>{{.i18n.Tr "admin.auths.verify_group_membership"}}</strong></label>
126-
<input id="groups_enabled" name="groups_enabled" type="checkbox" class="ldap_group_options" {{if $cfg.GroupsEnabled}}checked{{end}}>
126+
<input id="groups_enabled" name="groups_enabled" type="checkbox" class="ldap-group-options" {{if $cfg.GroupsEnabled}}checked{{end}}>
127127
</div>
128128
</div>
129129
<div id="groups_enabled_change">

templates/admin/auth/source/ldap.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@
8282
<div class="inline field">
8383
<div class="ui checkbox">
8484
<label for="team_group_map_enabled"><strong>{{.i18n.Tr "admin.auths.team_group_map_enabled"}}</strong></label>
85-
<input id="team_group_map_enabled" name="team_group_map_enabled" type="checkbox" class="ldap_group_options" {{if .team_group_map_enabled}}checked{{end}}>
85+
<input id="team_group_map_enabled" name="team_group_map_enabled" type="checkbox" class="ldap-group-options" {{if .team_group_map_enabled}}checked{{end}}>
8686
</div>
8787
</div>
8888
<div class="inline field">
8989
<div class="ui checkbox">
9090
<label for="team_group_map_removal"><strong>{{.i18n.Tr "admin.auths.team_group_map_removal"}}</strong></label>
91-
<input id="team_group_map_removal" name="team_group_map_removal" type="checkbox" class="ldap_group_options" {{if .team_group_map_removal}}checked{{end}}>
91+
<input id="team_group_map_removal" name="team_group_map_removal" type="checkbox" class="ldap-group-options" {{if .team_group_map_removal}}checked{{end}}>
9292
</div>
9393
</div>
9494
<div class="inline field">
9595
<div class="ui checkbox">
9696
<label for="groups_enabled"><strong>{{.i18n.Tr "admin.auths.verify_group_membership"}}</strong></label>
97-
<input id="groups_enabled" name="groups_enabled" type="checkbox" class="ldap_group_options" {{if .groups_enabled}}checked{{end}}>
97+
<input id="groups_enabled" name="groups_enabled" type="checkbox" class="ldap-group-options" {{if .groups_enabled}}checked{{end}}>
9898
</div>
9999
</div>
100100
<div id="groups_enabled_change">

web_src/js/features/admin-common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ export function initAdminCommon() {
165165
$('#use_paged_search').on('change', onUsePagedSearchChange);
166166
$('#oauth2_provider').on('change', () => onOAuth2Change(true));
167167
$('#oauth2_use_custom_url').on('change', () => onOAuth2UseCustomURLChange(true));
168-
$('.ldap_group_options').on('change', onVerifyGroupMembershipChange);
168+
$('.ldap-group-options').on('change', onVerifyGroupMembershipChange);
169169
}
170170
// Edit authentication
171171
if ($('.admin.edit.authentication').length > 0) {
172172
const authType = $('#auth_type').val();
173173
if (authType === '2' || authType === '5') {
174174
$('#security_protocol').on('change', onSecurityProtocolChange);
175-
$('.ldap_group_options').on('change', onVerifyGroupMembershipChange);
175+
$('.ldap-group-options').on('change', onVerifyGroupMembershipChange);
176176
onVerifyGroupMembershipChange();
177177
if (authType === '2') {
178178
$('#use_paged_search').on('change', onUsePagedSearchChange);

0 commit comments

Comments
 (0)