fix javascript error stalling Home for _val===undefined

This commit is contained in:
Ralf Becker 2014-12-11 16:59:46 +00:00
parent f7383f54d1
commit 012eee4594

View File

@ -234,7 +234,7 @@ function et2_checkType(_val, _type, _attr, _widget)
{
return _val;
}
_val = _val.replace(/window\.close\(\)/g, 'egw(window).close()');
if (_val) _val = _val.replace(/window\.close\(\)/g, 'egw(window).close()');
// Check to see if it's a string in app.appname.function format, and wrap it in
// a closure to make sure context is preserved