comment edit
parent
4fcbbe639f
commit
fe837c4fa5
|
@ -90,7 +90,7 @@
|
||||||
if (model.isValid() && this.collection.where({item: input_value}).length < 1) {
|
if (model.isValid() && this.collection.where({item: input_value}).length < 1) {
|
||||||
this.collection.add(model);
|
this.collection.add(model);
|
||||||
} else {
|
} else {
|
||||||
// add a visual error indicator
|
// else add a visual error indicator
|
||||||
$(".control-group", this.el).addClass('error')
|
$(".control-group", this.el).addClass('error')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue