SWF-764 - Spring.js AjaxEventDecoration not showing correct selected item in Internet Explorer

This commit is contained in:
Jeremy Grelle
2008-06-30 20:34:18 +00:00
parent 7b86939ae2
commit ea33ffc65a

View File

@@ -255,12 +255,13 @@ dojo.declare("Spring.RemotingHandler", Spring.AbstractRemotingHandler, {
response = response.replace(matchAll, '');
//Extract the new DOM nodes from the response
var tempDiv = dojo.doc.createElement("div");
tempDiv.id="ajaxResponse";
tempDiv.style.visibility= "hidden";
document.body.appendChild(tempDiv);
var tempContainer = new dojo.NodeList(tempDiv);
var newNodes = tempContainer.addContent(response, "first").query("#ajaxResponse > *").orphan();
var tempSpan = dojo.doc.createElement("span");
tempSpan.id="ajaxResponse";
tempSpan.style.visibility= "hidden";
document.body.appendChild(tempSpan);
tempSpan.innerHTML=response;
var tempContainer = new dojo.NodeList(tempSpan);
var newNodes = tempContainer.query("#ajaxResponse > *").orphan();
tempContainer.orphan();
//For a modal view, just dump the new nodes into a modal dialog
@@ -268,7 +269,6 @@ dojo.declare("Spring.RemotingHandler", Spring.AbstractRemotingHandler, {
Spring.remoting.renderNodeListToModalDialog(newNodes);
}
else {
//Insert the new DOM nodes and update the Form's action URL
newNodes.forEach(function(item){
if (item.id != null && item.id != "") {