|  | 
| 1 | 1 | window.addEventListener('DOMContentLoaded', () => { | 
| 2 | 2 | 	$('#excludedGroups,#linksExcludedGroups,#passwordsExcludedGroups').each(function(index, element) { | 
| 3 | 3 | 		OC.Settings.setupGroupsSelect($(element)) | 
| 4 |  | -		$(element).change((ev) => { | 
|  | 4 | +		$(element).change(function(ev) { | 
| 5 | 5 | 			let groups = ev.val || [] | 
| 6 | 6 | 			groups = JSON.stringify(groups) | 
| 7 | 7 | 			OCP.AppConfig.setValue('core', $(this).attr('name'), groups) | 
| 8 | 8 | 		}) | 
| 9 | 9 | 	}) | 
| 10 | 10 | 
 | 
| 11 |  | -	$('#loglevel').change(() => { | 
|  | 11 | +	$('#loglevel').change(function() { | 
| 12 | 12 | 		$.post(OC.generateUrl('/settings/admin/log/level'), { level: $(this).val() }, () => { | 
| 13 | 13 | 			OC.Log.reload() | 
| 14 | 14 | 		}) | 
| 15 | 15 | 	}) | 
| 16 | 16 | 
 | 
| 17 |  | -	$('#shareAPIEnabled').change(() => { | 
|  | 17 | +	$('#shareAPIEnabled').change(function() { | 
| 18 | 18 | 		$('#shareAPI p:not(#enable)').toggleClass('hidden', !this.checked) | 
| 19 | 19 | 	}) | 
| 20 | 20 | 
 | 
| @@ -206,11 +206,12 @@ window.addEventListener('DOMContentLoaded', () => { | 
| 206 | 206 | 		}) | 
| 207 | 207 | 	}) | 
| 208 | 208 | 
 | 
| 209 |  | -	$('#allowGroupSharing').change(() => { | 
|  | 209 | +	$('#allowGroupSharing').change(function() { | 
| 210 | 210 | 		$('#allowGroupSharing').toggleClass('hidden', !this.checked) | 
| 211 | 211 | 	}) | 
| 212 | 212 | 
 | 
| 213 |  | -	$('#shareapiExcludeGroups').change(() => { | 
|  | 213 | +    console.error("loaded") | 
|  | 214 | +	$('#shareapiExcludeGroups').change(function() { | 
| 214 | 215 | 		$('#selectExcludedGroups').toggleClass('hidden', !this.checked) | 
| 215 | 216 | 	}) | 
| 216 | 217 | 
 | 
|  | 
0 commit comments