|
|
@ -2,6 +2,7 @@
|
|
|
|
define([
|
|
|
|
define([
|
|
|
|
'app',
|
|
|
|
'app',
|
|
|
|
'Series/Index/List/CollectionView',
|
|
|
|
'Series/Index/List/CollectionView',
|
|
|
|
|
|
|
|
'Series/Index/Posters/CollectionView',
|
|
|
|
'Series/Index/EmptyView',
|
|
|
|
'Series/Index/EmptyView',
|
|
|
|
'Config',
|
|
|
|
'Config',
|
|
|
|
'Series/Index/Table/AirDateCell',
|
|
|
|
'Series/Index/Table/AirDateCell',
|
|
|
@ -100,6 +101,10 @@ define([
|
|
|
|
this.series.show(new NzbDrone.Series.Index.List.CollectionView({ collection: this.seriesCollection }));
|
|
|
|
this.series.show(new NzbDrone.Series.Index.List.CollectionView({ collection: this.seriesCollection }));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showPosters: function () {
|
|
|
|
|
|
|
|
this.series.show(new NzbDrone.Series.Index.Posters.CollectionView({ collection: this.seriesCollection }));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
showEmpty: function () {
|
|
|
|
showEmpty: function () {
|
|
|
|
this.series.show(new NzbDrone.Series.Index.EmptyView());
|
|
|
|
this.series.show(new NzbDrone.Series.Index.EmptyView());
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -120,6 +125,9 @@ define([
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
|
this.showList();
|
|
|
|
this.showList();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
this.showPosters();
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
this.showTable();
|
|
|
|
this.showTable();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -143,6 +151,11 @@ define([
|
|
|
|
this.showList();
|
|
|
|
this.showList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else if (view === 2) {
|
|
|
|
|
|
|
|
NzbDrone.Config.SeriesViewStyle(2);
|
|
|
|
|
|
|
|
this.showPosters();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
NzbDrone.Config.SeriesViewStyle(0);
|
|
|
|
NzbDrone.Config.SeriesViewStyle(0);
|
|
|
|
this.showTable();
|
|
|
|
this.showTable();
|
|
|
|