Skip to content

Commit

Permalink
Merge pull request #287 from adhil0/link_bug_fix
Browse files Browse the repository at this point in the history
Make sure linked text is accounted for
  • Loading branch information
dcritch authored Apr 4, 2024
2 parents 0233bc4 + 277cb6f commit fefe6c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,18 @@ def setup_scheduled_tasks(sender, **kwargs):
```

Now, the message will be printed every 15 minutes.

### Common Debugging Techniques

To see how the DataTables framework parses your data, you can use the following snippet (adapted from DataTables [docs](https://datatables.net/reference/api/row().data()#Examples)):

```{javascript}
$(document).ready(function () {
...
$('#data tbody').on('click', 'tr', function () {
console.log(table.row(this).data());
});
...
```

This can be useful when setting up and modifying your table's configuration, especially with regards to searching and ordering.
2 changes: 1 addition & 1 deletion dashboard/src/t5gweb/static/js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ $(document).ready(function () {
label: "Cases on Prio-list or Watchlist or Crit Sit",
value: function (rowData, rowIdx) {
return (
rowData[3] === "Yes" ||
rowData[3].includes("Yes") ||
rowData[4] === "Yes" ||
rowData[5] === "Yes"
);
Expand Down

0 comments on commit fefe6c9

Please sign in to comment.