Skip to content

Commit a9af4d4

Browse files
author
dtbuild
committed
77ccf9586b06c55c10a1990ebb64aea838331ae3 Fix: If there is an existing colgroup element in the table, remove it.
https://datatables.net/forums/discussion/81301 Sync to source repo @77ccf9586b06c55c10a1990ebb64aea838331ae3
1 parent 7912f2b commit a9af4d4

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

datatables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
],
1212
"src-repo": "http://github.com/DataTables/DataTablesSrc",
1313
"last-tag": "2.3.3",
14-
"last-sync": "587d4720cb213ec5d1e71915f4a7b485c67769cf"
14+
"last-sync": "77ccf9586b06c55c10a1990ebb64aea838331ae3"
1515
}

js/dataTables.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@
166166
this.id = sId;
167167
}
168168

169+
// Replacing an existing colgroup with our own. Not ideal, but a merge could take a lot of code
170+
$this.children('colgroup').remove();
171+
169172
/* Create the settings object for this table and set some of the default parameters */
170173
var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
171174
"sDestroyWidth": $this[0].style.width,

js/dataTables.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/dataTables.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

js/dataTables.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ var DataTable = function ( selector, options )
131131
this.id = sId;
132132
}
133133

134+
// Replacing an existing colgroup with our own. Not ideal, but a merge could take a lot of code
135+
$this.children('colgroup').remove();
136+
134137
/* Create the settings object for this table and set some of the default parameters */
135138
var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
136139
"sDestroyWidth": $this[0].style.width,

0 commit comments

Comments
 (0)