From: Björn Schießle Date: Wed, 13 Mar 2013 10:33:20 +0000 (+0100) Subject: only prevent shared action for the Shared folder in the root dir X-Git-Tag: v6.0.0alpha2~1071^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5f40ddaae1004835600f3b5a44bc1bdaea59d63;p=nextcloud-server.git only prevent shared action for the Shared folder in the root dir --- 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); }