]> source.dussan.org Git - nextcloud-server.git/commitdiff
apps files_sharing - fix in share.js to check the "can edit" checkbox -
authorkrzaczek <pawel@freshmind.pl>
Tue, 4 Oct 2011 14:08:14 +0000 (16:08 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Fri, 18 Nov 2011 13:05:38 +0000 (14:05 +0100)
there was a bug in share.js so the checbox was always unchecked

apps/files_sharing/js/share.js

index 4056d693bfa99dcd2d0fe975b519654efb0308cf..4457dddbe15a8b5e461cf6d1f37b5fa4faee67b9 100644 (file)
@@ -224,7 +224,7 @@ function addUser(uid_shared_with, permissions, parentFolder) {
                var user = '<li data-uid_shared_with="'+uid_shared_with+'">';
                user += '<a href="" class="unshare" style="display:none;"><img class="svg" alt="Unshare" src="'+OC.imagePath('core','actions/delete')+'"/></a>';
                user += uid_shared_with;
-               user += '<input type="checkbox" name="permissions" id="'+uid_shared_with+'" class="permissions" "+checked+" />';
+               user += '<input type="checkbox" name="permissions" id="'+uid_shared_with+'" class="permissions" '+checked+' />';
                user += '<label for="'+uid_shared_with+'" '+style+'>can edit</label>';
                user += '</li>';
        }