Fixed sorting on episode tables

pull/24/head
Mark McDowall 11 years ago
parent 3b4a1986c5
commit efbf89fac9

@ -37,7 +37,8 @@ define(
cell : ToggleCell, cell : ToggleCell,
trueClass : 'icon-bookmark', trueClass : 'icon-bookmark',
falseClass: 'icon-bookmark-empty', falseClass: 'icon-bookmark-empty',
tooltip : 'Toggle monitored status' tooltip : 'Toggle monitored status',
sortable : false
}, },
{ {
name : 'episodeNumber', name : 'episodeNumber',
@ -47,9 +48,10 @@ define(
}) })
}, },
{ {
name : 'this', name : 'this',
label: 'Title', label : 'Title',
cell : EpisodeTitleCell cell : EpisodeTitleCell,
sortable: false
}, },
{ {
name : 'airDate', name : 'airDate',
@ -57,9 +59,10 @@ define(
cell : AirDateCell cell : AirDateCell
} , } ,
{ {
name : 'status', name : 'status',
label: 'Status', label : 'Status',
cell : EpisodeStatusCell cell : EpisodeStatusCell,
sortable: false
} }
], ],

@ -32,6 +32,11 @@ define(
} }
return 0; return 0;
},
state: {
sortKey: 'episodeNumber',
order : -1
} }
}); });
}); });

Loading…
Cancel
Save