1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Limit the span modification for the sort classes - from pull request 40 (https://github.com/DataTables/DataTables/pull/40).

This commit is contained in:
Allan Jardine 2011-12-06 11:24:35 +00:00
parent c6d1dfd929
commit b4a289bf36
2 changed files with 2 additions and 2 deletions

View File

@ -4005,7 +4005,7 @@
if ( oSettings.bJUI )
{
/* jQuery UI uses extra markup */
var jqSpan = $("span", oSettings.aoColumns[i].nTh);
var jqSpan = $("span."+_oExt.oJUIClasses.sSortIcon, oSettings.aoColumns[i].nTh);
jqSpan.removeClass(oClasses.sSortJUIAsc +" "+ oClasses.sSortJUIDesc +" "+
oClasses.sSortJUI +" "+ oClasses.sSortJUIAscAllowed +" "+ oClasses.sSortJUIDescAllowed );

View File

@ -320,7 +320,7 @@ function _fnSortingClasses( oSettings )
if ( oSettings.bJUI )
{
/* jQuery UI uses extra markup */
var jqSpan = $("span", oSettings.aoColumns[i].nTh);
var jqSpan = $("span."+_oExt.oJUIClasses.sSortIcon, oSettings.aoColumns[i].nTh);
jqSpan.removeClass(oClasses.sSortJUIAsc +" "+ oClasses.sSortJUIDesc +" "+
oClasses.sSortJUI +" "+ oClasses.sSortJUIAscAllowed +" "+ oClasses.sSortJUIDescAllowed );