mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Calendar moved to layout
This commit is contained in:
parent
60e28140ab
commit
c04dc9d5e9
14 changed files with 211 additions and 149 deletions
13
UI/Calendar/UpcomingCollection.js
Normal file
13
UI/Calendar/UpcomingCollection.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
define(['app', 'Series/EpisodeModel'], function () {
|
||||
NzbDrone.Calendar.UpcomingCollection = Backbone.Collection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/calendar',
|
||||
model : NzbDrone.Series.EpisodeModel,
|
||||
|
||||
comparator: function(model) {
|
||||
var date = new Date(model.get('airDate'));
|
||||
var time = date.getTime();
|
||||
return time;
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue