nextcloud/apps/files_sharing/js/settings-admin.js

12 lines
230 B
JavaScript

$(document).ready(function() {
$('#fileSharingSettings input').change(function() {
var value = 'no';
if (this.checked) {
value = 'yes';
}
OC.AppConfig.setValue('files_sharing', $(this).attr('name'), value);
});
});