cleanup (undue req param) tls-sprint
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 20 Apr 2009 19:53:28 +0200
branchtls-sprint
changeset 1407 75863d3ffd9b
parent 1406 133476216f4a
child 1408 6bf19f175ea5
cleanup (undue req param)
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Mon Apr 20 19:53:09 2009 +0200
+++ b/web/data/cubicweb.ajax.js	Mon Apr 20 19:53:28 2009 +0200
@@ -18,8 +18,7 @@
     jQuery(node).find('div.ajaxHtmlHead').appendTo(jQuery('head'));
 }
 
-function postAjaxLoad(node, req) {
-    // addStylesheets(evalJSON(req.getResponseHeader('X-Cubicweb-Stylesheets') || '[]'));
+function postAjaxLoad(node) {
     loadAjaxHtmlHead(node);
     // find sortable tables if there are some
     if (typeof(Sortable) != 'undefined') {
@@ -71,7 +70,7 @@
 	} else if (mode == 'append') {
 	    jQuery(node).append(domnode);
 	}
-	postAjaxLoad(node, req);
+	postAjaxLoad(node);
 	while (jQuery.isFunction(callback)) {
 	    callback = callback.apply(this, [domnode]);
 	}