List Widget UI values cannot be null

pull/210/head
Michael Jett 2012-08-29 14:40:23 -04:00
parent fe837c4fa5
commit 332fe282be
1 changed files with 1 additions and 1 deletions

View File

@ -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