From 0b0e9675c469dcea6b1408dd188c0c792ab2a902 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Fri, 8 Aug 2014 03:11:11 +0300 Subject: [PATCH] Revert "Fix WebUI sort by ratio for some locales (with comma as decimal point)." This reverts commit ef328f83c5026bc8a5e72ebac990f3ce67e72a85. --- src/webui/scripts/dynamicTable.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/webui/scripts/dynamicTable.js b/src/webui/scripts/dynamicTable.js index 2b906b759..8fa51130a 100644 --- a/src/webui/scripts/dynamicTable.js +++ b/src/webui/scripts/dynamicTable.js @@ -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()); default: // Ratio var ratio1 = tr1.getElements('td')[i].get('html'); - ratio1 = ratio1.replace(",", "."); // toFloat() cannot parse comma as decimal point if(ratio1 == '∞') ratio1 = '101.0'; var ratio2 = tr2.getElements('td')[i].get('html'); - ratio2 = ratio2.replace(",", "."); // toFloat() cannot parse comma as decimal point if(ratio2 == '∞') ratio2 = '101.0'; if(!reverseSort)