mirror of
https://github.com/Radarr/Radarr
synced 2025-01-19 14:11:40 +00:00
Merge pull request #975 from geogolem/MovieEditorFilterSave
reset filters on save..
This commit is contained in:
commit
b492fece6c
1 changed files with 7 additions and 0 deletions
|
@ -108,6 +108,10 @@ module.exports = Marionette.ItemView.extend({
|
|||
model.edited = true;
|
||||
});
|
||||
for (var j=0; j<i; j++) {
|
||||
var filterKey = this.moviesCollection.state.filterKey;
|
||||
var filterValue = this.moviesCollection.state.filterValue;
|
||||
this.moviesCollection.setFilterMode('all');
|
||||
//this.moviesCollection.fullCollection.resetFiltered();
|
||||
var m = this.moviesCollection.fullCollection.findWhere({ tmdbId : b[j] });
|
||||
if (m!== undefined) {
|
||||
if (monitored === 'true') {
|
||||
|
@ -134,6 +138,9 @@ module.exports = Marionette.ItemView.extend({
|
|||
var rootFolderPath = RootFolders.get(parseInt(rootFolder, 10));
|
||||
m.set('rootFolderPath', rootFolderPath.get('path'));
|
||||
}
|
||||
this.moviesCollection.state.filterKey = filterKey;
|
||||
this.moviesCollection.state.filterValue = filterValue;
|
||||
this.moviesCollection.fullCollection.resetFiltered();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue