fix the eta sort order in the webui

This commit is contained in:
Damien Churchill 2009-10-27 11:16:55 +00:00
parent 831b81529c
commit d27d7c6733
1 changed files with 5 additions and 1 deletions

View File

@ -71,6 +71,10 @@ Copyright:
function trackerRenderer(value, p, r) {
return String.format('<div style="background: url(/tracker/{0}) no-repeat; padding-left: 20px;">{0}</div>', value);
}
function etaSorter(eta) {
return eta * -1;
}
/**
* Ext.deluge.TorrentGrid Class
@ -100,7 +104,7 @@ Copyright:
{name: 'total_peers', type: 'int'},
{name: 'downspeed', type: 'int'},
{name: 'upspeed', type: 'int'},
{name: 'eta', type: 'int'},
{name: 'eta', type: 'int', sortType: etaSorter},
{name: 'ratio', type: 'float'},
{name: 'avail', type: 'float'},
{name: 'added', type: 'int'},