Fix validation error message cleaning.

This commit is contained in:
takezoe
2013-06-18 13:48:10 +09:00
parent e2e8db731d
commit c8ca98f919

View File

@@ -13,7 +13,7 @@ function validate(e){
$.post(form.attr('action') + '/validate', $(e.target).serialize(), function(data){
// clear all error messages
$('.error-message').text('');
$('.error').text('');
if($.isEmptyObject(data)){
form.data('validated', true);