Fixed: UI now properly sorts on the Peers column.
This commit is contained in:
parent
8a1ed896ea
commit
8306305207
|
@ -26,7 +26,8 @@ define(
|
|||
name : 'protocol',
|
||||
label : 'Source',
|
||||
cell : ProtocolCell
|
||||
}, {
|
||||
},
|
||||
{
|
||||
name : 'age',
|
||||
label : 'Age',
|
||||
cell : AgeCell
|
||||
|
@ -66,7 +67,7 @@ define(
|
|||
name : 'download',
|
||||
label : '',
|
||||
cell : DownloadReportCell,
|
||||
sortable : false
|
||||
sortable : true // Is the default sort, which sorts by the internal prioritization logic.
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
@ -30,7 +30,14 @@ define(
|
|||
return releaseWeight;
|
||||
}
|
||||
},
|
||||
'download' : { sortKey: 'releaseWeight' }
|
||||
'download' : { sortKey: 'releaseWeight' },
|
||||
'seeders' : { sortValue: function(model) {
|
||||
var seeders = model.get('seeders') || 0;
|
||||
var leechers = model.get('leechers') || 0;
|
||||
|
||||
return seeders * 1000000 + leechers;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
fetchEpisodeReleases: function (episodeId) {
|
||||
|
|
Loading…
Reference in New Issue