removed a debug print statement
This commit is contained in:
parent
b9c2b044ff
commit
4b3bf9464b
@ -24,7 +24,6 @@ function search_all(s, url) {
|
||||
// build regex that matches search string occurrences
|
||||
let match_case = document.getElementById("match_case").checked;
|
||||
let match_s = new RegExp(`(${s})`, match_case ? "g" : "ig");
|
||||
console.dir(match_s);
|
||||
|
||||
// fetch search results
|
||||
let fetch_url = new URL(url);
|
||||
@ -83,6 +82,8 @@ console.dir(match_s);
|
||||
tbody.appendChild(tr);
|
||||
}
|
||||
table.appendChild(tbody);
|
||||
|
||||
// add heading and element id
|
||||
heading.innerHTML = `<h3>${db_table} (${tbody.childNodes.length} Treffer)</h3>`;
|
||||
container.setAttribute("id", `details-${db_table.toLowerCase()}`);
|
||||
|
||||
@ -92,7 +93,7 @@ console.dir(match_s);
|
||||
document.getElementById("results").insertBefore(document.createElement("hr"), container);
|
||||
}
|
||||
|
||||
// open container that was previously opened, or first one
|
||||
// pre-open container that was either previously opened or, if that's not available, is first
|
||||
let containers = document.querySelectorAll("#results>details");
|
||||
if ( containers.length ) {
|
||||
let container_ids = [...containers].map(c => c.id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user