only prevent shared action for the Shared folder in the root dir

This commit is contained in:
Björn Schießle 2013-03-13 11:33:20 +01:00
parent b2da2f769a
commit e5f40ddaae
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}