|
|
@ -360,7 +360,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
attribute.status = 1; |
|
|
|
attribute.status = 1; |
|
|
|
if ($input.length) { |
|
|
|
if ($input.length) { |
|
|
|
hasError = messages && $.isArray(messages[attribute.id]) && messages[attribute.name].length; |
|
|
|
hasError = messages && $.isArray(messages[attribute.name]) && messages[attribute.name].length; |
|
|
|
var $container = $form.find(attribute.container); |
|
|
|
var $container = $form.find(attribute.container); |
|
|
|
$container.removeClass( |
|
|
|
$container.removeClass( |
|
|
|
data.settings.validatingCssClass + ' ' + |
|
|
|
data.settings.validatingCssClass + ' ' + |
|
|
@ -369,7 +369,7 @@ |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (hasError) { |
|
|
|
if (hasError) { |
|
|
|
$form.find(attribute.error).html(messages[attribute.name][0]); |
|
|
|
$container.find(attribute.error).html(messages[attribute.name][0]); |
|
|
|
$container.addClass(data.settings.errorCssClass); |
|
|
|
$container.addClass(data.settings.errorCssClass); |
|
|
|
} else if (attribute.enableAjaxValidation || attribute.enableClientValidation && attribute.validate) { |
|
|
|
} else if (attribute.enableAjaxValidation || attribute.enableClientValidation && attribute.validate) { |
|
|
|
$container.addClass(data.settings.successCssClass); |
|
|
|
$container.addClass(data.settings.successCssClass); |
|
|
|