When you submit a form with validation errors, then correct these errors and submit the form again, errors still show.
A simple fix is to remove errors classes in the form :
$('.form-item :input', args.local.form[0]).removeClass('error');
Here is a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| ajax_disable_redirect.patch | 473 bytes | jide |
Comments
Comment #1
brendoncrawford commentedJide,
I think this may have been fixed in one of the past dev releases, as I am not able to reproduce this issue. Please re-open bug if this issue still occurs.
Thanks,
brendon
Comment #2
jide commentedBrendon,
I confirm the issue has been fixed.
Comment #4
2phathanks, both the latest release and dev version I downloaded today needed this.
Comment #5
RobW commentedOn my installation drop-down boxes still retain their error class after correct submission. Tested in Firefox and Chrome, ajax dev release, on a webform block with disable_redirect enabled.