1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-24 00:33:05 +00:00
Lidarr/UI/Calendar/Collection.js
2013-07-23 22:28:06 -07:00

17 lines
466 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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