Highlight wanted calls. Closes #117

This commit is contained in:
Ian Renton
2026-08-15 11:43:44 +01:00
parent 2ffa4780e8
commit 3006ee38cb
16 changed files with 224 additions and 122 deletions
+16
View File
@@ -269,6 +269,22 @@ function getCredentialHeaders() {
return headers;
}
// Does the DX call match something in the user's "wanted" list?
function callWanted(call) {
let wantedString = $("#wantedCalls").val();
if (wantedString) {
let split = wantedString.split(/[ ,]+/);
for (const i in split) {
if (split[i].length > 0 && call.toUpperCase().includes(split[i].toUpperCase())) {
return true;
}
}
return false;
} else {
return false;
}
}
// Startup
$(document).ready(function () {