From 012eee45945bcbbb6f80d92fad24fdad55219a77 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 11 Dec 2014 16:59:46 +0000 Subject: [PATCH] fix javascript error stalling Home for _val===undefined --- etemplate/js/et2_core_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_common.js b/etemplate/js/et2_core_common.js index 739e72a91e..93f825eb98 100644 --- a/etemplate/js/et2_core_common.js +++ b/etemplate/js/et2_core_common.js @@ -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