diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-11-24 11:46:03 +0100 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2022-11-24 22:11:48 +0100 |
commit | 0cab9372227f49ed157a4212b54381bcb7e27773 (patch) | |
tree | 225c92cc688cf58e227e3817eb14dd58e91897da /apps | |
parent | 38a1c2938b2f3ab721c453800a11458e2f7a329f (diff) | |
download | nextcloud-server-0cab9372227f49ed157a4212b54381bcb7e27773.tar.gz nextcloud-server-0cab9372227f49ed157a4212b54381bcb7e27773.zip |
Fix share admin page
arrow function don't work that well with jquery
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/src/admin.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/settings/src/admin.js b/apps/settings/src/admin.js index c1c87ce9396..e7220df3c91 100644 --- a/apps/settings/src/admin.js +++ b/apps/settings/src/admin.js @@ -1,20 +1,20 @@ window.addEventListener('DOMContentLoaded', () => { $('#excludedGroups,#linksExcludedGroups,#passwordsExcludedGroups').each(function(index, element) { OC.Settings.setupGroupsSelect($(element)) - $(element).change((ev) => { + $(element).change(function(ev) { let groups = ev.val || [] groups = JSON.stringify(groups) OCP.AppConfig.setValue('core', $(this).attr('name'), groups) }) }) - $('#loglevel').change(() => { + $('#loglevel').change(function() { $.post(OC.generateUrl('/settings/admin/log/level'), { level: $(this).val() }, () => { OC.Log.reload() }) }) - $('#shareAPIEnabled').change(() => { + $('#shareAPIEnabled').change(function() { $('#shareAPI p:not(#enable)').toggleClass('hidden', !this.checked) }) @@ -206,11 +206,11 @@ window.addEventListener('DOMContentLoaded', () => { }) }) - $('#allowGroupSharing').change(() => { + $('#allowGroupSharing').change(function() { $('#allowGroupSharing').toggleClass('hidden', !this.checked) }) - $('#shareapiExcludeGroups').change(() => { + $('#shareapiExcludeGroups').change(function() { $('#selectExcludedGroups').toggleClass('hidden', !this.checked) }) |