mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
18 lines
466 B
JavaScript
18 lines
466 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('airDateUtc'));
|
||
var time = date.getTime();
|
||
return time;
|
||
}
|
||
});
|
||
});
|