allow dynamicly determaning icons for fileactions

This commit is contained in:
Robin Appelman 2011-08-11 23:21:30 +02:00
parent 52df7accfd
commit ae7d9143f4
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ FileActions={
for(name in actions){
if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){
var img=FileActions.icons[name];
if(img.call){
img=img();
}
var html='<a href="#" title="'+name+'" class="file_action"/>';
var element=$(html);
if(img){