diff --git a/index.html b/index.html index f06dd68..7bc1b9b 100644 --- a/index.html +++ b/index.html @@ -44,7 +44,7 @@
- +
diff --git a/script.js b/script.js index 6260f6f..bc3b13c 100644 --- a/script.js +++ b/script.js @@ -145,8 +145,7 @@ function filteredRequests(q) { var r = state.requests[i]; if (state.statusFilter && r.status !== state.statusFilter) continue; if (q) { - var hay = (r.id + " " + r.equipment + " " + r.address + " " + r.reporter + " " + r.reason).toLowerCase(); - if (hay.indexOf(q) === -1) continue; + if (String(r.equipment).toLowerCase().indexOf(q) === -1) continue; } out.push(r); } @@ -158,8 +157,7 @@ function statusCounts(q) { for (var i = 0; i < state.requests.length; i++) { var r = state.requests[i]; if (q) { - var hay = (r.id + " " + r.equipment + " " + r.address + " " + r.reporter + " " + r.reason).toLowerCase(); - if (hay.indexOf(q) === -1) continue; + if (String(r.equipment).toLowerCase().indexOf(q) === -1) continue; } c[""] += 1; c[r.status] = (c[r.status] || 0) + 1;