forked from extern/egroupware
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") elem.icon = this.defaultIcons[elem.id];
|
||||||
if (typeof elem.icon != "undefined")
|
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);
|
elem.iconUrl = egw.image(elem.icon);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
delete elem.icon;
|
delete elem.icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user