Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/blame/commit/9dbfc6804f98588c13eda5eec5e8560b93471eeb/UI/AddSeries/Existing/AddExistingSeriesCollectionView.js You should set ROOT_URL correctly, otherwise the web may not work correctly.
Prowlarr/UI/AddSeries/Existing/AddExistingSeriesCollection...

46 lines
1.4 KiB

12 years ago
'use strict';
define(
[
'marionette',
'AddSeries/AddSeriesView',
12 years ago
'AddSeries/Existing/UnmappedFolderCollection'
], function (Marionette, AddSeriesView, UnmappedFolderCollection) {
12 years ago
return Marionette.CollectionView.extend({
itemView: AddSeriesView,
12 years ago
initialize: function () {
this.collection = new UnmappedFolderCollection();
this.collection.importItems(this.model);
},
showCollection: function () {
this._showAndSearch(0);
},
_showAndSearch: function (index) {
var self = this;
12 years ago
var model = this.collection.at(index);
12 years ago
if (model) {
var currentIndex = index;
var folderName = model.get('folder').name;
12 years ago
this.addItemView(model, this.getItemView(), index);
this.children.findByModel(model)
.search({term: folderName})
.always(function () {
if (!self.isClosed) {
self._showAndSearch(currentIndex + 1);
}
});
12 years ago
}
},
itemViewOptions: {
isExisting: true
12 years ago
}
});
});