From fa9c8edf0cb54e1fe822711e901791fe75e37236 Mon Sep 17 00:00:00 2001 From: Kevin Abel <kevin.abel.0@gmail.com> Date: Tue, 3 Jun 2014 09:16:57 -0500 Subject: [PATCH] Ensure the no-results appears in the active search DOM root --- www/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/search.js b/www/js/search.js index ac2efe1..0bd4750 100644 --- a/www/js/search.js +++ b/www/js/search.js @@ -176,7 +176,7 @@ }); $('img.gcsc-branding-img-noclear', $root).attr('alt', 'Googleâ„¢'); - if (!searchToggleLock && control == localSearch && $('.gs-no-results-result').length) { + if (!searchToggleLock && control == localSearch && $('.gs-no-results-result', $root).length) { $root.closest('.results-group').find('.result-tab li:last-child').click(); return; } -- GitLab