mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
fix the eta sort order in the webui
This commit is contained in:
parent
831b81529c
commit
d27d7c6733
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue