Skip to content

Commit a51c3b3

Browse files
CarlSchwannextcloud-command
authored andcommitted
Fix share admin page
arrow function don't work that well with jquery Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 888ffa4 commit a51c3b3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

apps/settings/src/admin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
window.addEventListener('DOMContentLoaded', () => {
22
$('#excludedGroups,#linksExcludedGroups,#passwordsExcludedGroups').each(function(index, element) {
33
OC.Settings.setupGroupsSelect($(element))
4-
$(element).change((ev) => {
4+
$(element).change(function(ev) {
55
let groups = ev.val || []
66
groups = JSON.stringify(groups)
77
OCP.AppConfig.setValue('core', $(this).attr('name'), groups)
88
})
99
})
1010

11-
$('#loglevel').change(() => {
11+
$('#loglevel').change(function() {
1212
$.post(OC.generateUrl('/settings/admin/log/level'), { level: $(this).val() }, () => {
1313
OC.Log.reload()
1414
})
@@ -253,11 +253,11 @@ window.addEventListener('DOMContentLoaded', () => {
253253
})
254254
})
255255

256-
$('#allowGroupSharing').change(() => {
256+
$('#allowGroupSharing').change(function() {
257257
$('#allowGroupSharing').toggleClass('hidden', !this.checked)
258258
})
259259

260-
$('#shareapiExcludeGroups').change(() => {
260+
$('#shareapiExcludeGroups').change(function() {
261261
$('#selectExcludedGroups').toggleClass('hidden', !this.checked)
262262
})
263263

dist/settings-legacy-admin.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)