mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-25 02:30:20 +02:00
18 lines
475 B
JavaScript
18 lines
475 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'backbone',
|
|
'Series/EpisodeModel'
|
|
], function (Backbone, EpisodeModel) {
|
|
return Backbone.Collection.extend({
|
|
url : window.NzbDrone.ApiRoot + '/calendar',
|
|
model: EpisodeModel,
|
|
|
|
comparator: function (model) {
|
|
var date = new Date(model.get('airDateUtc'));
|
|
var time = date.getTime();
|
|
return time;
|
|
}
|
|
});
|
|
});
|