2013-02-23 17:42:15 +00:00
|
|
|
|
define(['app', 'Calendar/CalendarModel'], function () {
|
|
|
|
|
NzbDrone.Calendar.CalendarCollection = Backbone.Collection.extend({
|
2013-03-29 23:28:58 +00:00
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/calendar',
|
|
|
|
|
model : NzbDrone.Calendar.CalendarModel,
|
|
|
|
|
comparator: function (model) {
|
2013-02-28 16:34:18 +00:00
|
|
|
|
return model.get('start');
|
|
|
|
|
}
|
2013-02-23 17:42:15 +00:00
|
|
|
|
});
|
|
|
|
|
});
|