web/data/cubicweb.edition.js
branchstable
changeset 2242 6772f8e859c2
parent 1971 5e6799e86088
child 2246 e89c15221a8a
--- a/web/data/cubicweb.edition.js	Thu Jul 02 12:57:51 2009 +0200
+++ b/web/data/cubicweb.edition.js	Thu Jul 02 12:58:17 2009 +0200
@@ -306,6 +306,7 @@
 
 function _clearPreviousErrors(formid) {
     jQuery('#' + formid + ' span.error').remove();
+    jQuery('div.errorMessage').remove();
 }
 
 function _displayValidationerrors(formid, eid, errors) {
@@ -324,7 +325,7 @@
 	    field.before(span);
 	} else {
 	    firsterrfield = formid;
-	    globalerrors.push(fieldname + ': ' + errmsg);
+	    globalerrors.push(_(fieldname) + ' : ' + errmsg);
 	}
     }
     if (globalerrors.length) {