# HG changeset patch # User Sylvain Thénault # Date 1304698858 -7200 # Node ID a95164cf14210f0ce238c43e3b0e523bbd4956e2 # Parent 72bb52edbb6b266ade97958f174edeefe0674c6c [ajax] reload method should return underlying deferred diff -r 72bb52edbb6b -r a95164cf1421 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 ******************************************************************/