1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

Fix: Remove irrelevent and broken bSortable check for the column options - fix issue #101

This commit is contained in:
Allan Jardine 2012-09-11 07:04:41 +01:00
parent 0a3793b4bb
commit ca96ed55d5
2 changed files with 6 additions and 8 deletions

View File

@ -197,11 +197,10 @@
oCol.sSortingClass = oSettings.oClasses.sSortableNone; oCol.sSortingClass = oSettings.oClasses.sSortableNone;
oCol.sSortingClassJUI = ""; oCol.sSortingClassJUI = "";
} }
else if ( oCol.bSortable || else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1 )
($.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1) )
{ {
oCol.sSortingClass = oSettings.oClasses.sSortable; oCol.sSortingClass = oSettings.oClasses.sSortable;
oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI; oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI;
} }
else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 ) else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 )
{ {

View File

@ -118,11 +118,10 @@ function _fnColumnOptions( oSettings, iCol, oOptions )
oCol.sSortingClass = oSettings.oClasses.sSortableNone; oCol.sSortingClass = oSettings.oClasses.sSortableNone;
oCol.sSortingClassJUI = ""; oCol.sSortingClassJUI = "";
} }
else if ( oCol.bSortable || else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1 )
($.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1) )
{ {
oCol.sSortingClass = oSettings.oClasses.sSortable; oCol.sSortingClass = oSettings.oClasses.sSortable;
oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI; oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI;
} }
else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 ) else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 )
{ {