Fix javascript checkbox toggle for resharing

remotes/origin/stable4
Michael Gapczynski 15 years ago
parent cbba469990
commit 6895c54a3f
  1. 2
      apps/files_sharing/js/settings.js

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

Loading…
Cancel
Save