diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-12 16:27:24 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-12 16:27:24 +0200 |
commit | 8626f04f5d9e591cf616c7a3b536409319f5718c (patch) | |
tree | 989900a37321d77810c388c5cb2472ca2f97d8d9 /apps/files/js/fileactions.js | |
parent | f6e7c633a0045b51d22deb2dcba256e44aecbc7b (diff) | |
download | nextcloud-server-8626f04f5d9e591cf616c7a3b536409319f5718c.tar.gz nextcloud-server-8626f04f5d9e591cf616c7a3b536409319f5718c.zip |
Label the delete operation "unshare" for files in the "Shared" folder to reduce
confusion about the operation.
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 7414c1f3395..deec640bc12 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -91,7 +91,11 @@ FileActions={ if(img.call){ img=img(file); } - var html='<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" style="display:none" />'; + if ($('#dir').val().indexOf('Shared') != -1) { + var html='<a href="#" original-title="' + t('files', 'Unshare') + '" class="action delete" style="display:none" />'; + } else { + var html='<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" style="display:none" />'; + } var element=$(html); if(img){ element.append($('<img src="'+img+'"/>')); |