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

reverted a576150b

Seems we don't really need this, since calling e.g. fileActions['audio/x-wav'] is no problem. It should be also more clear to use and read than e.g. fileActions.audioxwav
parent 087a72f0
No related branches found
No related tags found
No related merge requests found
......@@ -355,13 +355,10 @@ OC_FILES.file=function(dir,file,type,mime){
}
}
}
// 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];
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];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment