web/data/cubicweb.ajax.js
branchstable
changeset 5506 0ee2edec2d7a
parent 5186 f3c2cb460ad9
child 5658 7b9553a9db65
child 5767 1d811df051c2
--- 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);
         }