]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Convert sorttable.js to UTF-8
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 4 Jul 2011 11:55:11 +0000 (11:55 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 4 Jul 2011 11:55:11 +0000 (11:55 +0000)
Original script was in ISO8859-1.

sorttable/sorttable.js

index 25bccb2b6b91d5f835387595aadac3732af0e16f..2a104711c8600123c72428cc6c10a7af107c538b 100644 (file)
@@ -169,7 +169,7 @@ sorttable = {
     for (var i=0; i<table.tBodies[0].rows.length; i++) {
       text = sorttable.getInnerText(table.tBodies[0].rows[i].cells[column]);
       if (text != '') {
-        if (text.match(/^-?[£$¤]?[\d,.]+%?$/)) {
+        if (text.match(/^-?[£$¤]?[\d,.]+%?$/)) {
           return sorttable.sort_numeric;
         }
         // check for a date: dd/mm/yyyy or dd/mm/yy