just calling egw.image to use its special handling for egw_actions and dhtmlxtree

This commit is contained in:
Ralf Becker 2014-01-16 16:49:26 +00:00
parent 36e13b7c8f
commit 1ed9196066

View File

@ -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;
} }