mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-30 19:45:57 +00:00
17 lines
462 B
JavaScript
17 lines
462 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;
|
||
}
|
||
});
|
||
});
|