Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/3c686808f236eef559455a9fa519f200a8335288/UI/Calendar/UpcomingCollection.js
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
"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;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|