2013-03-29 19:37:10 +01:00
|
|
|
|
"use strict";
|
2013-05-01 05:14:54 +02:00
|
|
|
|
define(['app', 'Series/EpisodeModel'], function () {
|
2013-05-01 05:04:06 +02:00
|
|
|
|
NzbDrone.Missing.Collection = Backbone.PageableCollection.extend({
|
2013-03-29 19:37:10 +01:00
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/missing',
|
2013-05-01 02:25:33 +02:00
|
|
|
|
model : NzbDrone.Series.EpisodeModel,
|
2013-05-01 09:34:05 +02:00
|
|
|
|
|
2013-03-29 19:37:10 +01:00
|
|
|
|
comparator: function (model) {
|
2013-03-21 04:02:57 +01:00
|
|
|
|
return model.get('airDate');
|
2013-05-01 09:34:05 +02:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
state: {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
sortKey: "airDate",
|
|
|
|
|
order: 1
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
totalPages: null,
|
|
|
|
|
totalRecords: null,
|
|
|
|
|
pageSize: 'pageSize',
|
|
|
|
|
sortKey: "sortBy",
|
|
|
|
|
order: "direction",
|
|
|
|
|
directions: {
|
|
|
|
|
"-1": "asc",
|
|
|
|
|
"1": "desc"
|
|
|
|
|
}
|
2013-03-21 04:02:57 +01:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|