mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Calendar moved to layout
This commit is contained in:
13
UI/Calendar/Collection.js
Normal file
13
UI/Calendar/Collection.js
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
define(['app', 'Series/EpisodeModel'], function () {
|
||||
NzbDrone.Calendar.Collection = 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;
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user