From 8f389748d555b39d139bc0852e35f2541f4e2cb5 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 3 Nov 2013 19:33:34 +0100 Subject: Fixed evaluation of end-scripts on callback Aka: fix js event creation on callbacks --- framework/Web/Javascripts/source/prado/prado.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'framework/Web/Javascripts/source') diff --git a/framework/Web/Javascripts/source/prado/prado.js b/framework/Web/Javascripts/source/prado/prado.js index 7c3308c8..13e8be92 100644 --- a/framework/Web/Javascripts/source/prado/prado.js +++ b/framework/Web/Javascripts/source/prado/prado.js @@ -524,9 +524,17 @@ Prado.Element = * Evaluate a javascript snippet from a string. * @function ? * @param {string} content - String containing the script + * @param {string} boundary - Boundary containing the script */ - evaluateScript : function(content) + evaluateScript : function(content, boundary) { + if(boundary) + { + var result = this.extractContent(boundary); + if(result != null) + content = result; + } + try { jQuery.globalEval(content); -- cgit v1.2.3