mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
17 lines
466 B
JavaScript
17 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;
|
||
}
|
||
});
|
||
});
|