Skip to content

Commit

Permalink
e86bdad18a2ae35115ee8369bcde9023ad616b35 Fix: Date rendering would al…
Browse files Browse the repository at this point in the history
…ways set the properties of the data type, even if already added.

Sync to source repo @e86bdad18a2ae35115ee8369bcde9023ad616b35
  • Loading branch information
dtbuild committed Sep 26, 2024
1 parent d90011a commit 8c6985f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 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.7",
"last-sync": "0b07375e57ac56dd2ce582641115169eccd6340d"
"last-sync": "e86bdad18a2ae35115ee8369bcde9023ad616b35"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -12182,7 +12182,7 @@

// Add type detection and sorting specific to this date format - we need to be able to identify
// date type columns as such, rather than as numbers in extensions. Hence the need for this.
if (! DataTable.ext.type.order[typeName]) {
if (! DataTable.ext.type.order[typeName + '-pre']) {
DataTable.type(typeName, {
detect: function (d) {
// The renderer will give the value to type detect as the type!
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: 1 addition & 1 deletion js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12129,7 +12129,7 @@ function __mlHelper (localeString) {

// Add type detection and sorting specific to this date format - we need to be able to identify
// date type columns as such, rather than as numbers in extensions. Hence the need for this.
if (! DataTable.ext.type.order[typeName]) {
if (! DataTable.ext.type.order[typeName + '-pre']) {
DataTable.type(typeName, {
detect: function (d) {
// The renderer will give the value to type detect as the type!
Expand Down

0 comments on commit 8c6985f

Please sign in to comment.