From e57e994e9d4fa541685bd1b9c551bdb62f7ad0b7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 1 Oct 2013 17:07:08 +0000 Subject: [PATCH] Works better if I define the var --- etemplate/js/et2_core_legacyJSFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_legacyJSFunctions.js b/etemplate/js/et2_core_legacyJSFunctions.js index d9bb0f6ef0..ac32ea43c3 100644 --- a/etemplate/js/et2_core_legacyJSFunctions.js +++ b/etemplate/js/et2_core_legacyJSFunctions.js @@ -129,7 +129,7 @@ { _code += '(egw,widget,window,document)'; } - func = new Function('egw', 'widget', 'window', 'document', _code); + var func = new Function('egw', 'widget', 'window', 'document', _code); } catch(e) { _widget.egw().debug('error', 'Error while compiling JS code ', _code); return (function() {return false;});