Skip to content

Commit

Permalink
af56fe2f5c503326649979415761e9ad394fab5f Fix: `DataTable.ext.classes.…
Browse files Browse the repository at this point in the history
…thead.row` wouldn't apply to a header row that had been dynamically created by DataTables (only to existing header rows). The same with `.tfoot.row` as well.

DataTables/DataTablesSrc#305

Sync to source repo @af56fe2f5c503326649979415761e9ad394fab5f
  • Loading branch information
dtbuild committed Nov 18, 2024
1 parent d1df775 commit eac71f6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.1.8",
"last-sync": "b36b84d58cc245eb0b1509164be6f74f083c1193"
"last-sync": "af56fe2f5c503326649979415761e9ad394fab5f"
}
2 changes: 2 additions & 0 deletions js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -3246,9 +3246,11 @@

if (side === 'header') {
settings.aoHeader = detected;
$('tr', target).addClass(classes.thead.row);
}
else {
settings.aoFooter = detected;
$('tr', target).addClass(classes.tfoot.row);
}

// Every cell needs to be passed through the renderer
Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3193,9 +3193,11 @@ function _fnBuildHead( settings, side )

if (side === 'header') {
settings.aoHeader = detected;
$('tr', target).addClass(classes.thead.row);
}
else {
settings.aoFooter = detected;
$('tr', target).addClass(classes.tfoot.row);
}

// Every cell needs to be passed through the renderer
Expand Down

0 comments on commit eac71f6

Please sign in to comment.