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:
parent
0a3793b4bb
commit
ca96ed55d5
7
media/js/jquery.dataTables.js
vendored
7
media/js/jquery.dataTables.js
vendored
@ -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 )
|
||||||
{
|
{
|
||||||
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user