# HG changeset patch # User Sylvain Thénault # Date 1246532297 -7200 # Node ID 6772f8e859c20aaaea6661742acc00ca050947e9 # Parent fcf08ac5f8c068ba3eae3fb28f8c0f6195a3d7c0 translate not found fields, also clear global errors diff -r fcf08ac5f8c0 -r 6772f8e859c2 web/data/cubicweb.edition.js --- 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) {