From 42ab2c046dda267465a53365c6a5c32b66e9f949 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 8 May 2012 20:27:02 +0000 Subject: [PATCH] If onchange property was '1', do a full post --- etemplate/js/et2_core_legacyJSFunctions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_legacyJSFunctions.js b/etemplate/js/et2_core_legacyJSFunctions.js index 61bf12935a..3133f5ea88 100644 --- a/etemplate/js/et2_core_legacyJSFunctions.js +++ b/etemplate/js/et2_core_legacyJSFunctions.js @@ -93,7 +93,8 @@ // Check whether _code is simply "1" -- if yes replace it accordingly if (_code === '1') { - _code = 'return true;'; + _code = 'widget.getInstanceManager().postSubmit(); return true;'; + egw().debug("warn", "Widget uses 1 as JS. Full submit used instead, but this should be changed", _widget, _context); } // Check whether some pseudo-variables still reside inside of the code,