web/data/cubicweb.ajax.js
branchstable
changeset 5186 f3c2cb460ad9
parent 5157 1202e6565aff
child 5506 0ee2edec2d7a
equal deleted inserted replaced
5185:92376b009b98 5186:f3c2cb460ad9
   238 
   238 
   239 function asyncRemoteExec(fname /* ... */) {
   239 function asyncRemoteExec(fname /* ... */) {
   240     setProgressCursor();
   240     setProgressCursor();
   241     var props = {'fname' : fname, 'pageid' : pageid,
   241     var props = {'fname' : fname, 'pageid' : pageid,
   242                  'arg': map(jQuery.toJSON, sliceList(arguments, 1))};
   242                  'arg': map(jQuery.toJSON, sliceList(arguments, 1))};
       
   243     // XXX we should inline the content of loadRemote here
   243     var deferred = loadRemote(JSON_BASE_URL, props, 'POST');
   244     var deferred = loadRemote(JSON_BASE_URL, props, 'POST');
   244     deferred = deferred.addErrback(remoteCallFailed);
   245     deferred = deferred.addErrback(remoteCallFailed);
   245     deferred = deferred.addErrback(resetCursor);
   246     deferred = deferred.addErrback(resetCursor);
   246     deferred = deferred.addCallback(resetCursor);
   247     deferred = deferred.addCallback(resetCursor);
   247     return deferred;
   248     return deferred;