mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-08 09:55:05 +00:00
15 lines
462 B
JavaScript
15 lines
462 B
JavaScript
var Event = DSSModel.extend({
|
|
urlRoot:com.podnoms.settings.urlRoot + "event/",
|
|
isValid:function () {
|
|
this.errors = {};
|
|
if (com.podnoms.utils.isEmpty(this.get('event_description'))) {
|
|
return this.addError('event_description', 'Please enter description');
|
|
}
|
|
return "";
|
|
}
|
|
});
|
|
var EventCollection = TastypieCollection.extend({
|
|
url:com.podnoms.settings.urlRoot + "event/",
|
|
model:Event
|
|
});
|