mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Fix share admin page
arrow function don't work that well with jquery Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
b414f5ed86
commit
99c4030001
3 changed files with 8 additions and 8 deletions
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
|
|||
4
dist/settings-legacy-admin.js
vendored
4
dist/settings-legacy-admin.js
vendored
File diff suppressed because one or more lines are too long
2
dist/settings-legacy-admin.js.map
vendored
2
dist/settings-legacy-admin.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue