mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 09:03:49 -07:00
fix add existing series.
This commit is contained in:
parent
42efef0bb2
commit
904061c2f0
3 changed files with 17 additions and 11 deletions
|
@ -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);
|
||||
}));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue