Node.js based forum software built for the modern web
fix: move checks into timeout
Barış Soner Uşaklı47d73a2ab4f5
diff --git a/public/src/app.js b/public/src/app.jsindex 12c7033a52..811e50d541 100644--- a/public/src/app.js+++ b/public/src/app.js@@ -487,11 +487,11 @@ app.cacheBuster = null;clearTimeout(searchTimeoutId);searchTimeoutId = 0;}- if (inputEl.val().length < 3 || inputEl.val() === currentVal) {- return;- }- currentVal = inputEl.val();searchTimeoutId = setTimeout(function () {+ if (inputEl.val().length < 3 || inputEl.val() === currentVal) {+ return;+ }+ currentVal = inputEl.val();if (!inputEl.is(':focus')) {return quickSearchResults.addClass('hidden');}