1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-30 19:56:54 +00:00
Sonarr/UI/Calendar/Collection.js

18 lines
466 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) {
2013-07-24 05:28:06 +00:00
var date = new Date(model.get('airDateUtc'));
var time = date.getTime();
return time;
}
});
});