Skip to content

Commit

Permalink
d465757b36e0237b93a1fce05d553a3bb9ecd946 Dev: A little code golf to r…
Browse files Browse the repository at this point in the history
…educe size

Sync to source repo @d465757b36e0237b93a1fce05d553a3bb9ecd946
  • Loading branch information
AllanJard committed Nov 16, 2023
1 parent 09717cb commit 8535cba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 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": "1.13.7",
"last-sync": "7521d6f2bd98de2cde2e82dff82230c180eee722"
"last-sync": "d465757b36e0237b93a1fce05d553a3bb9ecd946"
}
7 changes: 4 additions & 3 deletions js/jquery.dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -8584,9 +8584,10 @@

if ( row._details ) {
row._details.each(function () {
var el = $(this);
if (el.children('td').length == 1) {
el.children('td[colspan]').attr('colspan', visible);
var el = $(this).children('td');

if (el.length == 1) {
el.attr('colspan', visible);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.dataTables.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions js/jquery.dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8527,9 +8527,10 @@ var __details_events = function ( settings )

if ( row._details ) {
row._details.each(function () {
var el = $(this);
if (el.children('td').length == 1) {
el.children('td[colspan]').attr('colspan', visible);
var el = $(this).children('td');

if (el.length == 1) {
el.attr('colspan', visible);
}
});
}
Expand Down

0 comments on commit 8535cba

Please sign in to comment.