Template/Update (Part 4)

* convert search into separate endpoints
 * move shared functionalty to components
 * NOTE: acceptance of opensearch has waned over the last decade and
         the script should be updated
This commit is contained in:
Sarjuuk
2025-08-06 15:19:28 +02:00
parent 81d9248541
commit 1f5152c871
13 changed files with 1995 additions and 1471 deletions

View File

@@ -18804,7 +18804,9 @@ var LiveSearch = new function() {
function highlight(match, $1) {
// $1 containts % in matches with %s, which we don't want to replace
return ($1 ? match : '<b><u>' + match + '</u></b>');
return ($1 ? '<b><u>' + match + '</u></b>' : match);
// aowow - why was the ternary reversed? Also how can it not match .. we explicitly searched for it.
// return ($1 ? match : '<b><u>' + match + '</u></b>');
}
function display(textbox, search, suggz, dataz) {