From: Derk-Jan Hartman Date: Sun, 7 Oct 2012 23:54:44 +0000 (+0200) Subject: Fix an issue with the data-sort-type retrieval. X-Git-Tag: 1.31.0-rc.0~22115 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=34db074bf05122d601598b00b2a9ff66f97aa779;p=lhc%2Fweb%2Fwiklou.git Fix an issue with the data-sort-type retrieval. 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 --- diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 3ef71d573c..2940d6f2be 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -151,7 +151,7 @@ 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 ); }