From 85a195c6d5ad6fccf9dd3df40ebecc338325d461 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Sat, 29 Jan 2011 01:39:22 +0100 Subject: Fixes #8082. Text to script converter now returns text. Unit test added. --- src/ajax/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ajax/script.js b/src/ajax/script.js index dfee86712..91c84d6f4 100644 --- a/src/ajax/script.js +++ b/src/ajax/script.js @@ -9,7 +9,10 @@ jQuery.ajaxSetup({ script: /javascript/ }, converters: { - "text script": jQuery.globalEval + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } } }); -- cgit v1.2.3