mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Workaround to ensure the view uses a unique cloned collection for filtering instead of affecting the generic SeriesCollection.
This commit is contained in:
parent
9df0ad0bf7
commit
7a4e05f04a
@ -127,10 +127,16 @@ define(
|
||||
]
|
||||
},
|
||||
|
||||
sortingOptions: {
|
||||
initialize: function () {
|
||||
this.seriesCollection = SeriesCollection.clone();
|
||||
|
||||
this.listenTo(SeriesCollection, 'sync', this._renderView);
|
||||
this.listenTo(SeriesCollection, 'remove', this._renderView);
|
||||
|
||||
this.sortingOptions = {
|
||||
type : 'sorting',
|
||||
storeState : false,
|
||||
viewCollection: SeriesCollection,
|
||||
viewCollection: this.seriesCollection,
|
||||
items :
|
||||
[
|
||||
{
|
||||
@ -159,13 +165,7 @@ define(
|
||||
name : 'percentOfEpisodes'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
this.seriesCollection = SeriesCollection;
|
||||
|
||||
this.listenTo(SeriesCollection, 'sync', this._renderView);
|
||||
this.listenTo(SeriesCollection, 'remove', this._renderView);
|
||||
};
|
||||
|
||||
this.filteringOptions = {
|
||||
type : 'radio',
|
||||
|
Loading…
Reference in New Issue
Block a user