fixed javascript errors happening if config was not loaded

This commit is contained in:
Ralf Becker 2014-03-25 12:23:06 +00:00
parent 9a10af6fe5
commit 7d7436e54b
2 changed files with 2 additions and 2 deletions

View File

@ -795,7 +795,7 @@ var et2_tree = et2_inputWidget.extend(
var image = images[i];
if (!image.match(image_extensions))
{
images[i] = this._rel_url(this.egw().image(image));
images[i] = this._rel_url(this.egw().image(image) || image);
}
}
if (typeof _id == 'undefined')

View File

@ -150,7 +150,7 @@ egw.extend('images', egw.MODULE_GLOBAL, function() {
else
{
icon = document.createElement('img');
icon.src = _url;
if (_url) icon.src = _url;
if (_alt) icon.alt = _alt;
}
return icon;