reset filters on save..

pull/2/head
geogolem 8 years ago
parent d03ee006fc
commit 5394f1dee9

@ -108,6 +108,10 @@ module.exports = Marionette.ItemView.extend({
model.edited = true; model.edited = true;
}); });
for (var j=0; j<i; j++) { 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] }); var m = this.moviesCollection.fullCollection.findWhere({ tmdbId : b[j] });
if (m!== undefined) { if (m!== undefined) {
if (monitored === 'true') { if (monitored === 'true') {
@ -134,6 +138,9 @@ module.exports = Marionette.ItemView.extend({
var rootFolderPath = RootFolders.get(parseInt(rootFolder, 10)); var rootFolderPath = RootFolders.get(parseInt(rootFolder, 10));
m.set('rootFolderPath', rootFolderPath.get('path')); m.set('rootFolderPath', rootFolderPath.get('path'));
} }
this.moviesCollection.state.filterKey = filterKey;
this.moviesCollection.state.filterValue = filterValue;
this.moviesCollection.fullCollection.resetFiltered();
} }
} }

Loading…
Cancel
Save