Permalink
Browse files

fixed filter widget parsed data error - fixes issue #149

  • Loading branch information...
1 parent a0e5229 commit 518775079114a6adbfdc845cb3677f9f5342a849 @Mottie committed Oct 14, 2012
View
Binary file not shown.
View
@@ -1,5 +1,5 @@
/*!
-* TableSorter 2.4.2 - Client-side table sorting with ease!
+* TableSorter 2.4.3 - Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
* Copyright (c) 2007 Christian Bach

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -412,8 +412,8 @@ $.tablesorter.addWidget({
ff = val === '' ? true : !(wo.filter_startsWith ? s === 0 : s >= 0);
// Look for operators >, >=, < or <=
} else if (/^[<>]=?/.test(val)){
- rg = $.tablesorter.formatFloat(xi.replace(reg[5], ''), table);
- if (isNaN(rg)) { rg = xi; }
+ // xi may be numeric - see issue #149
+ rg = isNaN(xi) ? $.tablesorter.formatFloat(xi.replace(reg[5], ''), table) : $.tablesorter.formatFloat(xi, table);
s = $.tablesorter.formatFloat(val.replace(reg[5], '').replace(reg[6],''), table);
if (/>/.test(val)) { ff = />=/.test(val) ? rg >= s : rg > s; }
if (/</.test(val)) { ff = /<=/.test(val) ? rg <= s : rg < s; }
Oops, something went wrong.

0 comments on commit 5187750

Please sign in to comment.