Temporary fix to prevent rename action in root of Shared directory

This commit is contained in:
Michael Gapczynski 2012-08-24 15:11:33 -04:00
parent 7168fa4b05
commit 0c4575db7a
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@ FileActions={
parent.children('a.name').append('<span class="fileactions" />');
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions());
for(name in actions){
// NOTE: Temporary fix to prevent rename action in root of Shared directory
if (name == 'Rename' && $('#dir').val() == '/Shared') {
continue;
}
if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){
var img=FileActions.icons[name];
if(img.call){