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

12 lines
231 B
JavaScript
Raw Permalink Normal View History

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