]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix javascript checkbox toggle for resharing
authorMichael Gapczynski <GapczynskiM@gmail.com>
Wed, 25 Apr 2012 18:35:30 +0000 (14:35 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Wed, 25 Apr 2012 18:37:14 +0000 (14:37 -0400)
apps/files_sharing/js/settings.js

index f1b1643e7d6381ddab9a68681efa6c701ae0bfbd..bb7d79fecbb24a2de090c0424c6a183b15018f97 100644 (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);