List Widget UI values cannot be null
parent
fe837c4fa5
commit
332fe282be
|
@ -83,7 +83,7 @@
|
|||
model = new URIModel({item:input_value});
|
||||
} else {
|
||||
model = new Backbone.Model({item:input_value});
|
||||
model.validate = function() {};
|
||||
model.validate = function() { if(!this.get("item")) return "value can't be null" };
|
||||
}
|
||||
|
||||
// if it's valid and doesn't already exist
|
||||
|
|
Loading…
Reference in New Issue