Posters view added for series

This commit is contained in:
Mark McDowall 2013-04-23 20:11:45 -07:00
commit 46bc97ef92
9 changed files with 137 additions and 1 deletions

View file

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