mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
im not too sure why this fixes the problem
but now the filterState is respected when returning from another page
This commit is contained in:
parent
ea22f5db79
commit
3c1b5385ba
1 changed files with 11 additions and 9 deletions
|
@ -150,10 +150,10 @@ module.exports = Marionette.Layout.extend({
|
||||||
this._showFooter();
|
this._showFooter();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.listenTo(this.seriesCollection, 'sync', function(model, collection, options) {
|
/*this.listenTo(this.seriesCollection, 'sync', function(model, collection, options) {
|
||||||
this._renderView();
|
this._renderView();
|
||||||
//MoviesCollectionClient.fetch();
|
//MoviesCollectionClient.fetch();
|
||||||
});
|
});*/
|
||||||
this.listenTo(this.seriesCollection, "change", function(model) {
|
this.listenTo(this.seriesCollection, "change", function(model) {
|
||||||
if (model.get('saved')) {
|
if (model.get('saved')) {
|
||||||
model.set('saved', false);
|
model.set('saved', false);
|
||||||
|
@ -292,13 +292,15 @@ module.exports = Marionette.Layout.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow : function() {
|
onShow : function() {
|
||||||
this._showToolbar();
|
this.listenToOnce(this.seriesCollection, 'sync', function() {
|
||||||
//this._fetchCollection();
|
this._showToolbar();
|
||||||
if (window.shownOnce) {
|
//this._fetchCollection();
|
||||||
this._fetchCollection();
|
if (window.shownOnce) {
|
||||||
this._showFooter();
|
//this._fetchCollection();
|
||||||
}
|
this._showFooter();
|
||||||
window.shownOnce = true;
|
}
|
||||||
|
window.shownOnce = true;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_showTable : function() {
|
_showTable : function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue