From bb5136e6773419123539edb14cacfb5569e12367 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Fri, 13 Jun 2025 08:49:26 +0100 Subject: [PATCH] Fix unresponsive search prefix (#726) --- www/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index 7b0ea464..572f32cb 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -4719,7 +4719,7 @@ function onKeyUpPrefix (evt) { // Don't process anything if it's the same prefix as recently entered (this prevents searching // if user is simply using arrow key to correct something typed). if (!/^\s/.test(prefix.value) && prefix.value === appstate.tempPrefix) return; - if (prefix.value && prefix.value.length > 0 && (prefix.value !== appstate.search.prefix || /^\s/.test(prefix.value))) { + if (prefix.value && prefix.value.length > 0) { appstate.tempPrefix = prefix.value; document.getElementById('searchArticles').click(); } @@ -5365,7 +5365,7 @@ function articleLoader (entry, mimeType) { // Add event listener to iframe window to check for links to external resources function filterClickEvent (event) { - console.debug('filterClickEvent fired'); + // console.debug('filterClickEvent fired'); // Ignore click if we are dealing with an image that has not yet been extracted if (event.target.dataset && event.target.dataset.kiwixhidden) return; // Find the closest enclosing A tag (if any)