diff options
author | Scott Barnett <scott.n.barnett@gmail.com> | 2011-09-27 05:26:49 +1000 |
---|---|---|
committer | Scott Barnett <scott.n.barnett@gmail.com> | 2011-09-27 05:26:49 +1000 |
commit | f4ecf47e619c7b182e08f23c6474717ac5df99fe (patch) | |
tree | 37670f4fe640a72d04e72db07fe618f17410b5f0 /apps/files_sharing/js/share.js | |
parent | e4dc33b368ffcfb7b0223dfaf57cfec1b93a5a73 (diff) | |
download | nextcloud-server-f4ecf47e619c7b182e08f23c6474717ac5df99fe.tar.gz nextcloud-server-f4ecf47e619c7b182e08f23c6474717ac5df99fe.zip |
Fixed delete cross positioning issue.
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r-- | apps/files_sharing/js/share.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 1bd1ac1075b..aaffc3824ea 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -215,9 +215,12 @@ function addUser(uid_shared_with, permissions, parentFolder) { } else { var checked = ((permissions > 0) ? 'checked="checked"' : 'style="display:none;"'); var style = ((permissions == 0) ? 'style="display:none;"' : ''); - var user = '<li data-uid_shared_with="'+uid_shared_with+'">'+uid_shared_with; - user += '<input type="checkbox" name="permissions" id="'+uid_shared_with+'" class="permissions" "+checked+" /><label for="'+uid_shared_with+'" '+style+'>can edit</label>'; - user += '<a href="" class="unshare" style="display:none;"><img class="svg" alt="Unshare" src="'+OC.imagePath('core','actions/delete')+'"/></a></li>'; + 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 += '<label for="'+uid_shared_with+'" '+style+'>can edit</label>'; + user += '</li>'; } $('#share_with option[value="'+uid_shared_with+'"]').remove(); $('#share_with').trigger('liszt:updated'); |