1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00
Radarr/UI/Calendar/Collection.js

18 lines
463 B
JavaScript
Raw Normal View History

'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;
}
});
});