mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-20 18:54:15 +01:00
Dev: Fix issue with the last commit which introduced an error witht he
classes calculated for display
This commit is contained in:
parent
b12ffb1dab
commit
67d19ac9e4
@ -121,17 +121,12 @@ function _fnColumnOptions( oSettings, iCol, oOptions )
|
||||
|
||||
/* Check that the class assignment is correct for sorting */
|
||||
var bAsc = $.inArray('asc', oCol.asSorting) !== -1;
|
||||
var bDesc = !bAsc && $.inArray('desc', oCol.asSorting) !== -1;
|
||||
var bDesc = $.inArray('desc', oCol.asSorting) !== -1;
|
||||
if ( !oCol.bSortable || (!bAsc && !bDesc) )
|
||||
{
|
||||
oCol.sSortingClass = oSettings.oClasses.sSortableNone;
|
||||
oCol.sSortingClassJUI = "";
|
||||
}
|
||||
else if ( !bAsc && !bDesc )
|
||||
{
|
||||
oCol.sSortingClass = oSettings.oClasses.sSortable;
|
||||
oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI;
|
||||
}
|
||||
else if ( bAsc && !bDesc )
|
||||
{
|
||||
oCol.sSortingClass = oSettings.oClasses.sSortableAsc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user