$(document).ready(function() {
	$('#allowResharing').bind('change', function() {
		var checked = 1;
		if (!$('#allowResharing').attr('checked')) {
			checked = 0;
		}
		$.post(OC.filePath('files_sharing','ajax','toggleresharing.php'), 'resharing='+checked);
	});
});
$(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);
	});
});
Fix javascript checkbox toggle for resharing
Fix javascript checkbox toggle for resharing
