diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-01 18:03:00 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-01 18:03:00 -0400 |
commit | 26e406c3c0ec478f29095d1d03cbb3afe04aa160 (patch) | |
tree | d7fc82b9b6122fc3c633a2e6beceb7d9678a6eca /core | |
parent | 92d683587a54f1ef1348a040c34d1f41f1a1e0ca (diff) | |
download | nextcloud-server-26e406c3c0ec478f29095d1d03cbb3afe04aa160.tar.gz nextcloud-server-26e406c3c0ec478f29095d1d03cbb3afe04aa160.zip |
Hide 'can edit' if not checked
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index a3fe0f69732..e3dfd27e760 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -165,7 +165,12 @@ OC.Share={ var html = '<li data-share-type="'+shareType+'" data-share-with="'+shareWith+'">'; html += shareWith; if (possiblePermissions & OC.Share.PERMISSION_CREATE || possiblePermissions & OC.Share.PERMISSION_UPDATE || possiblePermissions & OC.Share.PERMISSION_DELETE) { - html += '<label><input type="checkbox" name="edit" class="permissions" '+editChecked+' />can edit</label>'; + if (editChecked == '') { + html += '<label style="display:none;">'; + } else { + html += '<label>'; + } + html += '<input type="checkbox" name="edit" class="permissions" '+editChecked+' />can edit</label>'; } html += '<a href="#" class="showCruds" style="display:none;"><img class="svg" alt="Unshare" src="'+OC.imagePath('core', 'actions/triangle-s')+'"/></a>'; html += '<a href="#" class="unshare" style="display:none;"><img class="svg" alt="Unshare" src="'+OC.imagePath('core', 'actions/delete')+'"/></a>'; |