added toggle cell for episode ignore status.

This commit is contained in:
kay.one 2013-06-08 23:21:32 -07:00
parent ca71025bca
commit dc2930dc98
6 changed files with 48 additions and 32 deletions

View file

@ -1,5 +1,5 @@
'use strict';
define(['app', 'Series/Details/EpisodeStatusCell', 'Series/Details/EpisodeTitleCell'], function () {
define(['app', 'Series/Details/EpisodeStatusCell', 'Series/Details/EpisodeTitleCell','Shared/Cells/ToggleCell'], function () {
NzbDrone.Series.Details.SeasonLayout = Backbone.Marionette.Layout.extend({
template: 'Series/Details/SeasonLayoutTemplate',
@ -9,6 +9,13 @@ define(['app', 'Series/Details/EpisodeStatusCell', 'Series/Details/EpisodeTitleC
columns: [
{
name : 'ignored',
label: '',
cell : NzbDrone.Shared.Cells.ToggleCell,
trueClass : 'icon-bookmark-empty',
falseClass :'icon-bookmark'
},
{
name : 'episodeNumber',
label: '#',
@ -50,7 +57,7 @@ define(['app', 'Series/Details/EpisodeStatusCell', 'Series/Details/EpisodeTitleC
{
columns : this.columns,
collection: this.episodeCollection,
className : 'table table-hover'
className : 'table table-hover season-grid'
}));
}
});