Skip to content

Commit 47cdcf3

Browse files
authored
Merge pull request #29 from pfitsplus/copilot/show-sort-icons-on-sortable-headers
Show sort icons only on sortable table headers
2 parents ce4d903 + f0e53d3 commit 47cdcf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/js/init-sortable-tables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ document.addEventListener("DOMContentLoaded", function () {
5555
}
5656
}
5757

58-
document.querySelectorAll("table").forEach((table) => {
58+
document.querySelectorAll("table.js-sort-table").forEach((table) => {
5959
addSortIcons(table);
6060

6161
const headers = table.querySelectorAll("thead th");

0 commit comments

Comments
 (0)