Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure linked text is accounted for #287

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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