summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-11-24 11:46:03 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-11-24 11:54:57 +0100
commit99c4030001b4aa7625f47ece435a30bc5e7efcd1 (patch)
tree8a63d91348ccda60372e6dcaa751e0481524eec5 /apps/settings
parentb414f5ed866c404ab2a4d235f9343ff33aba0363 (diff)
downloadnextcloud-server-99c4030001b4aa7625f47ece435a30bc5e7efcd1.tar.gz
nextcloud-server-99c4030001b4aa7625f47ece435a30bc5e7efcd1.zip
Fix share admin page
arrow function don't work that well with jquery Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/admin.js10
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)
})