WW-2541 Backport WW-1951 to struts stable

o patch by Jelmer Kuperus applied

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X@667583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Hermanns
2008-06-13 16:19:32 +00:00
parent 190c97eb71
commit 1470efd592
@@ -140,6 +140,8 @@ dojo.widget.defineWidget(
if(this.executeScripts) {
//update targets content
var parsed = this.parse(data);
this.setContent(parsed.text);
//eval scripts
if(parsed.scripts && parsed.scripts.length > 0) {
var scripts = "";
@@ -148,7 +150,6 @@ dojo.widget.defineWidget(
}
(new Function('_container_', scripts+'; return this;'))(this);
}
this.setContent(parsed.text);
}
else {
this.setContent(data);