mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
Massive backgrid update, only one header cell left
This commit is contained in:
parent
874e98b408
commit
7e20e48023
13 changed files with 943 additions and 637 deletions
|
@ -13,12 +13,12 @@ define(
|
|||
'Cells/QualityProfileCell',
|
||||
'Cells/EpisodeProgressCell',
|
||||
'Cells/SeriesActionsCell',
|
||||
'Shared/Grid/DateHeaderCell',
|
||||
'Cells/SeriesStatusCell',
|
||||
'Series/Index/FooterView',
|
||||
'Series/Index/FooterModel',
|
||||
'Shared/Toolbar/ToolbarLayout',
|
||||
'underscore'
|
||||
'underscore',
|
||||
'moment'
|
||||
], function (Marionette,
|
||||
Backgrid,
|
||||
PosterCollectionView,
|
||||
|
@ -31,12 +31,12 @@ define(
|
|||
QualityProfileCell,
|
||||
EpisodeProgressCell,
|
||||
SeriesActionsCell,
|
||||
DateHeaderCell,
|
||||
SeriesStatusCell,
|
||||
FooterView,
|
||||
FooterModel,
|
||||
ToolbarLayout,
|
||||
_) {
|
||||
_,
|
||||
Moment) {
|
||||
return Marionette.Layout.extend({
|
||||
template: 'Series/Index/SeriesIndexLayoutTemplate',
|
||||
|
||||
|
@ -78,7 +78,15 @@ define(
|
|||
name : 'nextAiring',
|
||||
label : 'Next Airing',
|
||||
cell : RelativeDateCell,
|
||||
headerCell: DateHeaderCell
|
||||
sortValue : function (model) {
|
||||
var nextAiring = model.get('nextAiring');
|
||||
|
||||
if (!nextAiring) {
|
||||
return Number.MAX_VALUE;
|
||||
}
|
||||
|
||||
return Moment(nextAiring).unix();
|
||||
}
|
||||
},
|
||||
{
|
||||
name : 'percentOfEpisodes',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue