diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-11 23:21:30 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-11 23:21:30 +0200 |
commit | ae7d9143f4982a7fa8709cca4774a0808272ab3a (patch) | |
tree | 8371cb4d4e6477dc80cbf7c0c00cfb8a9266b8ea /files | |
parent | 52df7accfd1a1a8f4ac35d29e00d60961469c063 (diff) | |
download | nextcloud-server-ae7d9143f4982a7fa8709cca4774a0808272ab3a.tar.gz nextcloud-server-ae7d9143f4982a7fa8709cca4774a0808272ab3a.zip |
allow dynamicly determaning icons for fileactions
Diffstat (limited to 'files')
-rw-r--r-- | files/js/fileactions.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js index a8de2f9977b..370b1773c68 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -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){ |