mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fixed javascript errors happening if config was not loaded
This commit is contained in:
parent
9a10af6fe5
commit
7d7436e54b
@ -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')
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user