From b16efcada2b17fbe29f5e8fc52a74dd241416eda Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Mon, 25 Apr 2011 13:15:26 +0000 Subject: [PATCH] Followup to r86108: jQuery tries to be too smart and converts the string to a number, which breaks the value parser --- resources/jquery/jquery.tablesorter.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 1f60e1b3e1..50073d80d8 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -209,10 +209,8 @@ } function getElementText( node ) { - var n = $( node ); - var sortValue = n.data('sort-value'); - if ( typeof sortValue != 'undefined' ) { - return sortValue; + if ( node.hasAttribute && node.hasAttribute( "data-sort-value" ) ) { + return node.getAttribute( "data-sort-value" ); } else { return n.text(); } -- 2.20.1