Skip to content

Commit 06515a0

Browse files
author
dtbuild
committedFeb 3, 2025·
d5b18b7b842a2612bf35ad4725c2bc0893aa6fac "Modal": Only print the colon if the title is not empty
This prevents cells with just a `:` in them, if the column title is empty. 01ade00baaed7d1e2d2dd7e8d8cf7a6ed2e60fa6 Fix: Only print the colon if the title is not empty Merge pull request #138 from TobiasBg/patch-1 Sync to source repo @01ade00baaed7d1e2d2dd7e8d8cf7a6ed2e60fa6
1 parent cb08391 commit 06515a0

5 files changed

+11
-7
lines changed
 

‎datatables.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
],
1212
"src-repo": "http://github.com/DataTables/Responsive",
1313
"last-tag": "3.0.3",
14-
"last-sync": "23a882cf9560b54b7b15d32f8b5934f23739dc38"
14+
"last-sync": "01ade00baaed7d1e2d2dd7e8d8cf7a6ed2e60fa6"
1515
}

‎js/dataTables.responsive.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1663,8 +1663,10 @@ Responsive.renderer = {
16631663
col.columnIndex +
16641664
'">' +
16651665
'<td>' +
1666-
col.title +
1667-
':' +
1666+
( '' !== col.title
1667+
? col.title + ':'
1668+
: ''
1669+
) +
16681670
'</td> ' +
16691671
'<td>' +
16701672
col.data +

‎js/dataTables.responsive.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎js/dataTables.responsive.min.mjs

+1-1
Large diffs are not rendered by default.

‎js/dataTables.responsive.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1623,8 +1623,10 @@ Responsive.renderer = {
16231623
col.columnIndex +
16241624
'">' +
16251625
'<td>' +
1626-
col.title +
1627-
':' +
1626+
( '' !== col.title
1627+
? col.title + ':'
1628+
: ''
1629+
) +
16281630
'</td> ' +
16291631
'<td>' +
16301632
col.data +

0 commit comments

Comments
 (0)
Please sign in to comment.