web/data/cubicweb.reledit.js
branchstable
changeset 6287 f4a0282c31a5
parent 6283 c827fa795a6b
child 6422 c07c42a81075
--- a/web/data/cubicweb.reledit.js	Fri Sep 17 17:25:58 2010 +0200
+++ b/web/data/cubicweb.reledit.js	Fri Sep 17 17:46:47 2010 +0200
@@ -67,8 +67,8 @@
         var args = {fname: 'reledit_form', rtype: rtype, role: role,
                     pageid: pageid,
                     eid: eid, divid: divid, formid: formid,
-                    reload: reload, vid: vid,
-                    callback: function () {cw.reledit.showInlineEditionForm(divid);}};
-       jQuery('#'+divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, args, 'post');
+                    reload: reload, vid: vid};
+        var d = jQuery('#'+divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, args, 'post');
+        d.addCallback(function () {cw.reledit.showInlineEditionForm(divid);});
     }
 });