mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
fix add existing series.
This commit is contained in:
@@ -20,17 +20,18 @@ define(
|
||||
},
|
||||
|
||||
_showAndSearch: function (index) {
|
||||
|
||||
var self = this;
|
||||
var model = this.collection.at(index);
|
||||
|
||||
if (model) {
|
||||
var self = this;
|
||||
var currentIndex = index;
|
||||
var folderName = model.get('folder').name;
|
||||
this.addItemView(model, this.getItemView(), index);
|
||||
$.when(this.children.findByModel(model).search({term: folderName})).then(function () {
|
||||
self._showAndSearch(currentIndex + 1);
|
||||
});
|
||||
this.children.findByModel(model)
|
||||
.search({term: folderName})
|
||||
.always((function () {
|
||||
self._showAndSearch(currentIndex + 1);
|
||||
}));
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user