fix the eta sort order in the webui
This commit is contained in:
parent
7055a96930
commit
7c5582a21e
@ -10,6 +10,7 @@
|
|||||||
* Fix setting torrent options when adding
|
* Fix setting torrent options when adding
|
||||||
* Fix setting file priorities when adding
|
* Fix setting file priorities when adding
|
||||||
* HTML escape the field values on the details tab
|
* 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) ===
|
=== Deluge 1.2.0_rc2 (25 October 2009) ===
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
|
|||||||
@ -72,6 +72,10 @@ Copyright:
|
|||||||
return String.format('<div style="background: url(/tracker/{0}) no-repeat; padding-left: 20px;">{0}</div>', value);
|
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
|
* Ext.deluge.TorrentGrid Class
|
||||||
*
|
*
|
||||||
@ -100,7 +104,7 @@ Copyright:
|
|||||||
{name: 'total_peers', type: 'int'},
|
{name: 'total_peers', type: 'int'},
|
||||||
{name: 'downspeed', type: 'int'},
|
{name: 'downspeed', type: 'int'},
|
||||||
{name: 'upspeed', type: 'int'},
|
{name: 'upspeed', type: 'int'},
|
||||||
{name: 'eta', type: 'int'},
|
{name: 'eta', type: 'int', sortType: etaSorter},
|
||||||
{name: 'ratio', type: 'float'},
|
{name: 'ratio', type: 'float'},
|
||||||
{name: 'avail', type: 'float'},
|
{name: 'avail', type: 'float'},
|
||||||
{name: 'added', type: 'int'},
|
{name: 'added', type: 'int'},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user