allow for resetting errors via ArrayInput setErrors
This commit is contained in:
commit
3ff120873b
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,9 @@ Ox.ArrayInput = function(options, self) {
|
||||||
|
|
||||||
that.setErrors = function(values) {
|
that.setErrors = function(values) {
|
||||||
self.$input.forEach(function($input) {
|
self.$input.forEach(function($input) {
|
||||||
values.indexOf($input.value()) > -1 && $input.addClass('OxError');
|
$input[
|
||||||
|
values.indexOf($input.value()) > -1 ? 'addClass' : 'removeClass'
|
||||||
|
]('OxError');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue