--- 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;
}