mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
just calling egw.image to use its special handling for egw_actions and dhtmlxtree
This commit is contained in:
parent
36e13b7c8f
commit
1ed9196066
@ -330,17 +330,9 @@ egwAction.prototype.updateActions = function(_actions, _app)
|
||||
{
|
||||
if (typeof elem.icon == "undefined") elem.icon = this.defaultIcons[elem.id];
|
||||
if (typeof elem.icon != "undefined")
|
||||
{
|
||||
var parts = elem.icon.split('/', 2); // app/image syntax to search icon in different app
|
||||
if (parts.length == 2)
|
||||
{
|
||||
elem.iconUrl = egw.image(parts[1], parts[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
elem.iconUrl = egw.image(elem.icon);
|
||||
}
|
||||
}
|
||||
delete elem.icon;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user