nextcloud/apps/files_sharing/js/settings.js

9 lines
242 B
JavaScript
Raw Normal View History

$(document).ready(function() {
$('#allowResharing').bind('change', function() {
var checked = 1;
if (!this.checked) {
checked = 0;
}
$.post(OC.filePath('files_sharing','ajax','toggleresharing.php'), 'resharing='+checked);
});
});