mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
started cleaning up episode page.
This commit is contained in:
parent
9efee65966
commit
9a42e305ad
18 changed files with 528 additions and 63 deletions
52
UI/Series/Details/SeasonLayout.js
Normal file
52
UI/Series/Details/SeasonLayout.js
Normal file
|
@ -0,0 +1,52 @@
|
|||
'use strict';
|
||||
define(['app'], function () {
|
||||
NzbDrone.Series.Details.SeasonLayout = Backbone.Marionette.Layout.extend({
|
||||
template: 'Series/Details/SeasonLayoutTemplate',
|
||||
|
||||
regions: {
|
||||
episodeGrid: '#x-episode-grid'
|
||||
},
|
||||
|
||||
columns: [
|
||||
{
|
||||
name : 'episodeNumber',
|
||||
label : '#',
|
||||
editable: false,
|
||||
cell : 'integer'
|
||||
},
|
||||
|
||||
{
|
||||
name : 'title',
|
||||
label : 'Title',
|
||||
editable: false,
|
||||
cell : 'string'
|
||||
},
|
||||
{
|
||||
name : 'airDate',
|
||||
label : 'Air Date',
|
||||
editable : false,
|
||||
cell : 'datetime',
|
||||
formatter: new Backgrid.AirDateFormatter()
|
||||
}
|
||||
],
|
||||
|
||||
initialize: function () {
|
||||
this.episodeCollection = new NzbDrone.Series.EpisodeCollection();
|
||||
this.episodeCollection.fetch({data: {
|
||||
seriesId : this.model.get('seriesId'),
|
||||
seasonNumber: this.model.get('seasonNumber')
|
||||
}});
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
|
||||
this.episodeGrid.show(new Backgrid.Grid(
|
||||
{
|
||||
columns : this.columns,
|
||||
collection: this.episodeCollection,
|
||||
className : 'table table-hover'
|
||||
}));
|
||||
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue