http://www.mediawiki.org/wiki/Special:Code/MediaWiki/86854

Revision: 86854
Author:   diebuche
Date:     2011-04-25 13:15:26 +0000 (Mon, 25 Apr 2011)
Log Message:
-----------
Followup to r86108: jQuery tries to be too smart and converts the string to a 
number, which breaks the value parser

Modified Paths:
--------------
    trunk/phase3/resources/jquery/jquery.tablesorter.js

Modified: trunk/phase3/resources/jquery/jquery.tablesorter.js
===================================================================
--- trunk/phase3/resources/jquery/jquery.tablesorter.js 2011-04-25 12:26:20 UTC 
(rev 86853)
+++ trunk/phase3/resources/jquery/jquery.tablesorter.js 2011-04-25 13:15:26 UTC 
(rev 86854)
@@ -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();
                                }


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to