[ajax] missing html heads processing in reloadComponent (sic\!) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 10 May 2010 15:16:37 +0200
branchstable
changeset 5506 0ee2edec2d7a
parent 5505 7f98d22ac6e4
child 5507 3604c1c78295
[ajax] missing html heads processing in reloadComponent (sic\!)
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Mon May 10 15:15:06 2010 +0200
+++ b/web/data/cubicweb.ajax.js	Mon May 10 15:16:37 2010 +0200
@@ -60,7 +60,7 @@
     //    returned several 'root' nodes and we need to keep the wrapper
     //    created by getDomFromResponse()
     if (response.childNodes.length == 1 &&
-	response.getAttribute('cubicweb:type') == 'cwResponseWrapper') {
+        response.getAttribute('cubicweb:type') == 'cwResponseWrapper') {
         return response.firstChild;
     }
     return response;
@@ -286,6 +286,7 @@
         if (node) {
             // make sure the component is visible
             removeElementClass(node, "hidden");
+            domnode = preprocessAjaxLoad(node, domnode);
             swapDOM(node, domnode);
             postAjaxLoad(domnode);
         }