diff --git a/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js b/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js index 0ee46d49..13a4184f 100644 --- a/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js +++ b/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js @@ -298,7 +298,8 @@ dojo.declare("Spring.RemotingHandler", Spring.AbstractRemotingHandler, { extractedScriptNodes.push(script); } } - response = response.replace(matchAll, ''); + // Remove scripts but don't remove scripts entirely (see SWF-1358) + response = response.replace(matchAll, ''); if (modalView) { //For a modal view, just dump the response into a modal dialog