Fix an issue with the data-sort-type retrieval.
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 7 Oct 2012 23:54:44 +0000 (01:54 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 7 Oct 2012 23:54:44 +0000 (01:54 +0200)
The treatment of attributes with embedded dashes was changed in jQuery
1.6 to conform to the W3C HTML5 specification. Hyphenated names become
camel-cased.

Change-Id: I4ac2ebdc1ba8350b9696e516f62ba803fa8fb46b

resources/jquery/jquery.tablesorter.js

index 3ef71d5..2940d6f 100644 (file)
 
                        for ( i = 0; i < len; i++ ) {
                                parser = false;
-                               sortType = $headers.eq( i ).data( 'sort-type' );
+                               sortType = $headers.eq( i ).data( 'sortType' );
                                if ( sortType !== undefined ) {
                                        parser = getParserById( sortType );
                                }