Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/blame/commit/21a3260bf284e743a569847a72184845f56942cc/UI/AddSeries/Existing/UnmappedFolderCollection.js
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
'use strict';
|
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'backbone',
|
|
|
|
|
'AddSeries/Existing/UnmappedFolderModel'
|
|
|
|
|
], function (Backbone, UnmappedFolderModel) {
|
|
|
|
|
return Backbone.Collection.extend({
|
|
|
|
|
model: UnmappedFolderModel,
|
|
|
|
|
|
|
|
|
|
importItems: function (rootFolderModel) {
|
|
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
var rootFolder = rootFolderModel;
|
|
|
|
|
|
|
|
|
|
_.each(rootFolderModel.get('unmappedFolders'), function (folder) {
|
|
|
|
|
this.push(new UnmappedFolderModel({
|
|
|
|
|
rootFolder: rootFolder,
|
|
|
|
|
folder : folder
|
|
|
|
|
}));
|
|
|
|
|
}, this);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|