replaced fileActions[this.mime] by fileActions[this.mime1 + this.mime2], since an object name cannot contain slashes. (correct me if I'm wrong)
This commit is contained in:
parent
7710dc7325
commit
a576150b64
|
@ -355,10 +355,13 @@ OC_FILES.file=function(dir,file,type,mime){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(OC_FILES.fileActions[this.mime]){
|
// replaced fileActions[this.mime] by fileActions[this.mime1 + this.mime2]
|
||||||
for(index in OC_FILES.fileActions[this.mime]){
|
// since an object name cannot contain slashes.
|
||||||
if(OC_FILES.fileActions[this.mime][index].call){
|
// (correct me if I'm wrong)
|
||||||
this.actions[index]=OC_FILES.fileActions[this.mime][index];
|
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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue