summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-13 11:33:20 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-13 11:33:20 +0100
commite5f40ddaae1004835600f3b5a44bc1bdaea59d63 (patch)
treed063870524f041e6123763029b98d6a5c705cce4 /apps/files/js
parentb2da2f769a896af5a139e6ce426e835b6c60aca9 (diff)
downloadnextcloud-server-e5f40ddaae1004835600f3b5a44bc1bdaea59d63.tar.gz
nextcloud-server-e5f40ddaae1004835600f3b5a44bc1bdaea59d63.zip
only prevent shared action for the Shared folder in the root dir
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 3c4fa08bf1f..f3264da5a12 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -112,7 +112,7 @@ var FileActions = {
addAction(name, action);
}
});
- if(actions.Share && file !== 'Shared'){
+ if(actions.Share && !($('#dir').val() === '/' && file === 'Shared')){
addAction('Share', actions.Share);
}