mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-09 20:01:08 +00:00
Revert "Fix WebUI sort by ratio for some locales (with comma as decimal point)."
This reverts commit c3942fb0b345fb1471a157e59dcdb230eb2d37ae.
This commit is contained in:
parent
d44df4f985
commit
2729abfd32
@ -112,11 +112,9 @@ var dynamicTable = new Class ({
|
|||||||
return (tr2.getElements('td')[i].get('html').split(' ')[0].toInt() - tr1.getElements('td')[i].get('html').split(' ')[0].toInt());
|
return (tr2.getElements('td')[i].get('html').split(' ')[0].toInt() - tr1.getElements('td')[i].get('html').split(' ')[0].toInt());
|
||||||
default: // Ratio
|
default: // Ratio
|
||||||
var ratio1 = tr1.getElements('td')[i].get('html');
|
var ratio1 = tr1.getElements('td')[i].get('html');
|
||||||
ratio1 = ratio1.replace(",", "."); // toFloat() cannot parse comma as decimal point
|
|
||||||
if(ratio1 == '∞')
|
if(ratio1 == '∞')
|
||||||
ratio1 = '101.0';
|
ratio1 = '101.0';
|
||||||
var ratio2 = tr2.getElements('td')[i].get('html');
|
var ratio2 = tr2.getElements('td')[i].get('html');
|
||||||
ratio2 = ratio2.replace(",", "."); // toFloat() cannot parse comma as decimal point
|
|
||||||
if(ratio2 == '∞')
|
if(ratio2 == '∞')
|
||||||
ratio2 = '101.0';
|
ratio2 = '101.0';
|
||||||
if(!reverseSort)
|
if(!reverseSort)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user