mirror of https://github.com/lidarr/Lidarr
Stop searching for existing series when view is changed
This commit is contained in:
parent
5d8bc50c77
commit
c2129054a0
|
@ -4,7 +4,7 @@ define(
|
||||||
'app',
|
'app',
|
||||||
'marionette',
|
'marionette',
|
||||||
'AddSeries/RootFolders/Layout',
|
'AddSeries/RootFolders/Layout',
|
||||||
'AddSeries/Existing/CollectionView',
|
'AddSeries/Existing/AddExistingSeriesCollectionView',
|
||||||
'AddSeries/AddSeriesView',
|
'AddSeries/AddSeriesView',
|
||||||
'Quality/QualityProfileCollection',
|
'Quality/QualityProfileCollection',
|
||||||
'AddSeries/RootFolders/Collection',
|
'AddSeries/RootFolders/Collection',
|
||||||
|
|
|
@ -30,7 +30,9 @@ define(
|
||||||
this.children.findByModel(model)
|
this.children.findByModel(model)
|
||||||
.search({term: folderName})
|
.search({term: folderName})
|
||||||
.always(function () {
|
.always(function () {
|
||||||
self._showAndSearch(currentIndex + 1);
|
if (!self.isClosed) {
|
||||||
|
self._showAndSearch(currentIndex + 1);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
|
@ -52,5 +52,5 @@ define(
|
||||||
|
|
||||||
options.element.startSpin();
|
options.element.startSpin();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue