[javascript] reloadBox: return deferred for further callback chaining
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 18 Dec 2008 15:00:16 +0100
changeset 225 b90904dc3069
parent 224 408ce834899a
child 226 26eb9d72e722
[javascript] reloadBox: return deferred for further callback chaining
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Thu Dec 18 11:04:10 2008 +0100
+++ b/web/data/cubicweb.ajax.js	Thu Dec 18 15:00:16 2008 +0100
@@ -242,7 +242,7 @@
 
 /* XXX: HTML architecture of cubicweb boxes is a bit strange */
 function reloadBox(boxid, rql) {
-    reloadComponent(boxid, rql, 'boxes', boxid);
+    return reloadComponent(boxid, rql, 'boxes', boxid);
 }
 
 function userCallbackThenUpdateUI(cbname, compid, rql, msg, registry, nodeid) {