summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-12 16:27:24 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-12 16:27:24 +0200
commit8626f04f5d9e591cf616c7a3b536409319f5718c (patch)
tree989900a37321d77810c388c5cb2472ca2f97d8d9 /apps
parentf6e7c633a0045b51d22deb2dcba256e44aecbc7b (diff)
downloadnextcloud-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')
-rw-r--r--apps/files/js/fileactions.js6
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+'"/>'));