summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-04-25 14:35:30 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-04-25 14:37:14 -0400
commit6895c54a3fe4cbc690ce0e17154bfe2e40295bb0 (patch)
treea26ec88b4780594d18d0c866c559c17febde812b /apps
parentcbba469990a96d78d78d1426cfffbb7e36b5d6ac (diff)
downloadnextcloud-server-6895c54a3fe4cbc690ce0e17154bfe2e40295bb0.tar.gz
nextcloud-server-6895c54a3fe4cbc690ce0e17154bfe2e40295bb0.zip
Fix javascript checkbox toggle for resharing
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/settings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/settings.js b/apps/files_sharing/js/settings.js
index f1b1643e7d6..bb7d79fecbb 100644
--- a/apps/files_sharing/js/settings.js
+++ b/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);