1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Calendar/Collection.js

18 lines
475 B
JavaScript
Raw Normal View History

'use strict';
define(
[
'backbone',
'Series/EpisodeModel'
], function (Backbone, EpisodeModel) {
return Backbone.Collection.extend({
2013-09-14 10:10:19 +03:00
url : window.NzbDrone.ApiRoot + '/calendar',
model: EpisodeModel,
comparator: function (model) {
2013-07-24 08:28:06 +03:00
var date = new Date(model.get('airDateUtc'));
var time = date.getTime();
return time;
}
});
});