Fix javascript checkbox toggle for resharing

This commit is contained in:
Michael Gapczynski 2012-04-25 14:35:30 -04:00
parent cbba469990
commit 6895c54a3f

View file

@ -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);