web/data/cubicweb.edition.js
branchstable
changeset 2382 c1dcb5aef4b4
parent 2371 76bf522c27be
child 2458 4d114865098f
child 2482 dead2d56f711
--- a/web/data/cubicweb.edition.js	Thu Jul 16 08:08:11 2009 +0200
+++ b/web/data/cubicweb.edition.js	Thu Jul 16 13:53:33 2009 +0200
@@ -501,8 +501,7 @@
         var relname = rtype + ':' + eid;
         var newtarget = jQuery('[name=' + relname + ']').val();
 	var zipped = formContents(form);
-	var d = asyncRemoteExec('edit_relation', 'apply', zipped[0], zipped[1], rtype, role,
-                                eid, vid, default_value, lzone);
+	var d = asyncRemoteExec('validate_form', 'apply', zipped[0], zipped[1]);
     } catch (ex) {
 	log('got exception', ex);
 	return false;
@@ -513,7 +512,7 @@
           document.location.href = result[1];
         } else {
 	  if (result[0]) {
-            var d = asyncRemoteExec('reledit_form', eid, rtype, role, lzone);
+            var d = asyncRemoteExec('reledit_form', eid, rtype, role, default_value, lzone);
             d.addCallback(function (result) {
               jQuery('#'+divid+'-reledit').replaceWith(result);
             });