mirror of https://github.com/lidarr/Lidarr
18 lines
463 B
JavaScript
18 lines
463 B
JavaScript
'use strict';
|
||
define(
|
||
[
|
||
'backbone',
|
||
'Series/EpisodeModel'
|
||
], function (Backbone, EpisodeModel) {
|
||
return Backbone.Collection.extend({
|
||
url : window.ApiRoot + '/calendar',
|
||
model: EpisodeModel,
|
||
|
||
comparator: function (model) {
|
||
var date = new Date(model.get('airDate'));
|
||
var time = date.getTime();
|
||
return time;
|
||
}
|
||
});
|
||
});
|