From 6895c54a3fe4cbc690ce0e17154bfe2e40295bb0 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Wed, 25 Apr 2012 14:35:30 -0400 Subject: Fix javascript checkbox toggle for resharing --- apps/files_sharing/js/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing') 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); -- cgit v1.2.3