Browse Source

Revert "Fix WebUI sort by size/speed for some locales (with comma as decimal point)."

This reverts commit 87d118e87c.
adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
061d4fc721
  1. 5
      src/webui/scripts/dynamicTable.js

5
src/webui/scripts/dynamicTable.js

@ -79,9 +79,8 @@ var dynamicTable = new Class ({ @@ -79,9 +79,8 @@ var dynamicTable = new Class ({
case 8: // Down Speed
var sizeStrToFloat = function(mystr) {
var val1 = mystr.split(' ');
val1[0] = val1[0].replace(",", "."); // toFloat() cannot parse comma as decimal point
var val1num = val1[0].toFloat();
var unit = val1[1].split('/')[0]; // get an unit numerator only (to support speed values)
var val1num = val1[0].toFloat()
var unit = val1[1];
switch(unit) {
case '_(TiB)':
return val1num*1099511627776;

Loading…
Cancel
Save