fix the eta sort order in the webui

This commit is contained in:
Damien Churchill 2009-10-27 11:16:55 +00:00
parent 7055a96930
commit 7c5582a21e
2 changed files with 6 additions and 1 deletions

View file

@ -10,6 +10,7 @@
* Fix setting torrent options when adding
* Fix setting file priorities when adding
* HTML escape the field values on the details tab
* Fix #215, make infinite eta values display in the correct order
=== Deluge 1.2.0_rc2 (25 October 2009) ===
==== GtkUI ====

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'},