[ajax] reload method should return underlying deferred stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 06 May 2011 18:20:58 +0200
branchstable
changeset 7328 a95164cf1421
parent 7327 72bb52edbb6b
child 7329 f2d52aa8bcdb
[ajax] reload method should return underlying deferred
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Fri May 06 18:20:26 2011 +0200
+++ b/web/data/cubicweb.ajax.js	Fri May 06 18:20:58 2011 +0200
@@ -605,7 +605,7 @@
     var ajaxArgs = ['render', formparams, registry, compid];
     ajaxArgs = ajaxArgs.concat(cw.utils.sliceList(arguments, 4));
     var params = ajaxFuncArgs.apply(null, ajaxArgs);
-    $('#'+domid).loadxhtml('json', params, null, 'swap');
+    return $('#'+domid).loadxhtml('json', params, null, 'swap');
 }
 
 /* ajax tabs ******************************************************************/