Skip to content
Snippets Groups Projects
Commit a576150b authored by Florian's avatar Florian
Browse files

replaced fileActions[this.mime] by fileActions[this.mime1 + this.mime2], since...

replaced fileActions[this.mime] by fileActions[this.mime1 + this.mime2], since an object name cannot contain slashes. (correct me if I'm wrong)
parent 7710dc73
Branches
No related tags found
No related merge requests found
......@@ -355,10 +355,13 @@ OC_FILES.file=function(dir,file,type,mime){
}
}
}
if(OC_FILES.fileActions[this.mime]){
for(index in OC_FILES.fileActions[this.mime]){
if(OC_FILES.fileActions[this.mime][index].call){
this.actions[index]=OC_FILES.fileActions[this.mime][index];
// replaced fileActions[this.mime] by fileActions[this.mime1 + this.mime2]
// since an object name cannot contain slashes.
// (correct me if I'm wrong)
if(OC_FILES.fileActions[this.mime1 + this.mime2]){
for(index in OC_FILES.fileActions[this.mime1 + this.mime2]){
if(OC_FILES.fileActions[this.mime1 + this.mime2][index].call){
this.actions[index]=OC_FILES.fileActions[this.mime1 + this.mime2][index];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment