Skip to content
Snippets Groups Projects
Commit 0c4575db authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Temporary fix to prevent rename action in root of Shared directory

parent 7168fa4b
Branches
No related tags found
No related merge requests found
...@@ -77,6 +77,10 @@ FileActions={ ...@@ -77,6 +77,10 @@ FileActions={
parent.children('a.name').append('<span class="fileactions" />'); parent.children('a.name').append('<span class="fileactions" />');
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions()); var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions());
for(name in actions){ 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'){ if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){
var img=FileActions.icons[name]; var img=FileActions.icons[name];
if(img.call){ if(img.call){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment