Index: openacs-4/packages/xowiki/www/resources/yui-form-field-validate.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/yui-form-field-validate.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/xowiki/www/resources/yui-form-field-validate.js 24 Nov 2009 14:11:40 -0000 1.1 +++ openacs-4/packages/xowiki/www/resources/yui-form-field-validate.js 24 Nov 2009 14:18:08 -0000 1.2 @@ -81,6 +81,12 @@ if (errorEl != undefined) { errorEl.parentNode.removeChild(errorEl); } + if (YAHOO.util.Dom.hasClass(inputEl.parentNode,"form-widget-error") && + inputEl.parentNode.class != "form-widget-error") { + YAHOO.util.Dom.replaceClass(inputEl.parentNode,"form-widget-error","form-widget"); + } else { + YAHOO.util.Dom.removeClass(inputEl.parentNode,"form-widget-error"); + } } },