1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Fixed: The behaviour for complex headers has been altered slightly for complex headers in that only the first of non-unique TH elements will be click to sort-able. Unit test update needed as this is different behaviour from before when all elements belonging to a column were click to sort.

This commit is contained in:
Allan Jardine 2010-11-17 08:25:54 +00:00
parent 3514563d9c
commit d141d8370a

View File

@ -18,15 +18,15 @@ $(document).ready( function () {
); );
oTest.fnTest( oTest.fnTest(
"Sorting on non-unique TH and second TH will sort", "Sorting on non-unique TH and second TH will not sort",
function () { $('#example thead th:eq(6)').click(); }, function () { $('#example thead th:eq(6)').click(); },
function () { return $('#example tbody tr td:eq(4)').html() == "A"; } function () { return $('#example tbody tr td:eq(4)').html() == "A"; }
); );
oTest.fnTest( oTest.fnTest(
"Sorting on non-unique TH and second TH will sort - reserve", "Sorting on non-unique TH and second TH will not sort - reserve",
function () { $('#example thead th:eq(6)').click(); }, function () { $('#example thead th:eq(6)').click(); },
function () { return $('#example tbody tr td:eq(4)').html() == "X"; } function () { return $('#example tbody tr td:eq(4)').html() == "A"; }
); );
oTest.fnTest( oTest.fnTest(