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

12 lines
257 B
JavaScript
Raw Permalink Normal View History

window.addEventListener('DOMContentLoaded', function() {
$('#fileSharingSettings input').change(function() {
var value = 'no';
if (this.checked) {
value = 'yes';
}
OCP.AppConfig.setValue('files_sharing', $(this).attr('name'), value);
});
});