1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

Updated: Complex header behaviour has changed slightly to make the bottom unique TH element the one which has the sorting listener attached. Updated unit test

This commit is contained in:
Allan Jardine 2011-04-12 21:33:47 +01:00
parent 2d253df1e5
commit 6849515c0e

View File

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