web/data/cubicweb.edition.js
branchstable
changeset 3343 383b42263bb1
parent 3342 8b30ae9c4e67
child 3544 188d86631c45
--- a/web/data/cubicweb.edition.js	Mon Sep 21 15:55:40 2009 +0200
+++ b/web/data/cubicweb.edition.js	Mon Sep 21 17:04:19 2009 +0200
@@ -350,11 +350,11 @@
 }
 
 
-function handleFormValidationResponse(formid, onsuccess, onfailure, result) {
+function handleFormValidationResponse(formid, onsuccess, onfailure, result, cbargs) {
     // Success
     if (result[0]) {
 	if (onsuccess) {
-             onsuccess(result, formid);
+             onsuccess(result, formid, cbargs);
 	} else {
 	    document.location.href = result[1];
 	}
@@ -374,7 +374,7 @@
     updateMessage(_('please correct errors below'));
     document.location.hash = '#header';
     if (onfailure) {
-	onfailure(formid);
+	onfailure(formid, cbargs);
     }
     return false;
 }