From 4f28b0435d012b83297c781a6fdbd40d58f20d6a Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Thu, 23 Jun 2011 07:39:56 +0000 Subject: [PATCH] Adding a collation test to tablesorter, fixing var ref from r90630 --- resources/jquery/jquery.tablesorter.js | 2 +- tests/qunit/index.html | 2 +- .../jquery/jquery.tablesorter.test.js | 53 +++++++++++++++++-- 3 files changed, 50 insertions(+), 7 deletions(-) diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 3ce4c66c1f..808cf6b62c 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -481,7 +481,7 @@ } } if (keys.length) { - ts.collationRegex = new RegExp( '[' + ts.collationRegex.join('') + ']', 'ig' ); + ts.collationRegex = new RegExp( '[' + keys.join('') + ']', 'ig' ); } } } diff --git a/tests/qunit/index.html b/tests/qunit/index.html index 94fccbb0b8..0e1a0450c7 100644 --- a/tests/qunit/index.html +++ b/tests/qunit/index.html @@ -60,7 +60,7 @@ - +