# HG changeset patch # User Sylvain Thénault # Date 1273497397 -7200 # Node ID 0ee2edec2d7a59a1ca8b39de8af1f7d5beb6c070 # Parent 7f98d22ac6e4b553ad1a9883ff706798d645e796 [ajax] missing html heads processing in reloadComponent (sic\!) diff -r 7f98d22ac6e4 -r 0ee2edec2d7a 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); }