Skip to content
Closed
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
5 changes: 3 additions & 2 deletions dashboard/assets/scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,14 +621,15 @@ class JobsRenderer {
}

applyFilter() {
const query = this.filterBox.value;
const query = RegExp(this.filterBox.value);
let matches = 0;
const matchedWindows = [];
const unmatchedWindows = [];
this.firstFilterMatch = null;
for (const job of this.jobs.sorted) {
const w = this.renderInfo[job.ident].logWindow;
if (!RegExp(query).test(job.url)) {
const show = query.test(job.url) || (this.showNicks && query.test(job.started_by));
if (!show) {
w.classList.add("log-window-hidden");

unmatchedWindows.push(w);
Expand Down