1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-17 15:54:14 +01:00

Fixed: Sorting disabled classes were not being correctly applied if sorting was disabled. This was particularly obvious with jQuery UI theming - 3064

This commit is contained in:
Allan Jardine 2010-10-16 10:59:21 +01:00
parent d41c572798
commit a2d7a32b2f
2 changed files with 12 additions and 1 deletions

View File

@ -4500,7 +4500,7 @@
* Purpose: Set the sortting classes on the header
* Returns: -
* Inputs: object:oSettings - dataTables settings object
* Notes: It is safe to call this function when bSort is false
* Notes: It is safe to call this function when bSort and bSortClasses are false
*/
function _fnSortingClasses( oSettings )
{
@ -6660,6 +6660,11 @@
}
}
}
/* Do a first pass on the sorting classes (allows any size changes to be taken into
* account, and also will apply sorting disabled classes if disabled
*/
_fnSortingClasses( oSettings );
/*
* Final init

View File

@ -65,6 +65,12 @@ $(document).ready( function () {
function () { return $('#example tbody td:eq(3)').html() == "4"; }
);
oTest.fnTest(
"Disabled classes applied",
null,
function () { return $('#example thead th:eq(0)').hasClass('sorting_disabled'); }
);
oTest.fnTest(
"Click on second column has no effect",
function () { $('#example thead th:eq(1)').click(); },