mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user