Skip to content

Commit

Permalink
Fixed logic that sets DataTable order from URL params
Browse files Browse the repository at this point in the history
  • Loading branch information
horshack-dpreview committed Mar 30, 2024
1 parent eb2822f commit 43b728d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13079,7 +13079,7 @@ <h2 style="text-align:center">Source: <a href="https://github.com/horshack-dprev
$("#readout_times tr th").each(function(index) {
const thText = this.textContent;
if (regexColumn.test(thText)) {
$("#readout_times").DataTable().order([index, dsc ? 'dsc' : 'asc']).draw();
$("#readout_times").DataTable().order([[index, dsc ? 'dsc' : 'asc']]).draw();
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion docs/index_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2 style="text-align:center">Source: <a href="https://github.com/horshack-dprev
$("#readout_times tr th").each(function(index) {
const thText = this.textContent;
if (regexColumn.test(thText)) {
$("#readout_times").DataTable().order([index, dsc ? 'dsc' : 'asc']).draw();
$("#readout_times").DataTable().order([[index, dsc ? 'dsc' : 'asc']]).draw();
return false;
}
return true;
Expand Down

0 comments on commit 43b728d

Please sign in to comment.