web/data/cubicweb.ajax.js
branchstable
changeset 2338 3f7c7fbae94e
parent 2257 2c9eceeaae6a
child 3011 657dfe374b08
equal deleted inserted replaced
2337:6620e5abcd99 2338:3f7c7fbae94e
    57 	initFacetBoxEvents(node);
    57 	initFacetBoxEvents(node);
    58     }
    58     }
    59     if (typeof buildWidgets != 'undefined') {
    59     if (typeof buildWidgets != 'undefined') {
    60 	buildWidgets(node);
    60 	buildWidgets(node);
    61     }
    61     }
    62     if (typeof roundedCornersOnLoad != 'undefined') {
    62     if (typeof roundedCorners != 'undefined') {
    63 	roundedCornersOnLoad();
    63 	roundedCorners(node);
    64     }
    64     }
    65     loadDynamicFragments(node);
    65     loadDynamicFragments(node);
    66     jQuery(CubicWeb).trigger('ajax-loaded');
    66     jQuery(CubicWeb).trigger('ajax-loaded');
    67 }
    67 }
    68 
    68 
   229 	var domnode = getDomFromResponse(result);
   229 	var domnode = getDomFromResponse(result);
   230 	if (node) {
   230 	if (node) {
   231 	    // make sure the component is visible
   231 	    // make sure the component is visible
   232 	    removeElementClass(node, "hidden");
   232 	    removeElementClass(node, "hidden");
   233 	    swapDOM(node, domnode);
   233 	    swapDOM(node, domnode);
       
   234 	    postAjaxLoad(domnode);
   234 	}
   235 	}
   235     });
   236     });
   236     d.addCallback(resetCursor);
   237     d.addCallback(resetCursor);
   237     d.addErrback(function(xxx) {
   238     d.addErrback(function(xxx) {
   238 	updateMessage(_("an error occured"));
   239 	updateMessage(_("an error occured"));