mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
allow dynamicly determaning icons for fileactions
This commit is contained in:
parent
52df7accfd
commit
ae7d9143f4
1 changed files with 3 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue