diff --git a/www/js/search.js b/www/js/search.js index 6f707811caa51864f55f03a828ed75be738d3d27..45af855ad8e0633bad99a6fa40af7fce2f0a0cd8 100644 --- a/www/js/search.js +++ b/www/js/search.js @@ -194,10 +194,12 @@ define(['jquery', 'analytics'], function ($, analytics) { }); $('img.gcsc-branding-img-noclear', $root).attr('alt', 'Googleâ„¢'); - if (!searchToggleLock && localGoogleSearch && control == localGoogleSearch.control && $('.gs-no-results-result', $root).length) { - $root.closest('.results-group').find('.result-tab li:last-child').click(); - return; - } + setTimeout(function() { + if (!searchToggleLock && localGoogleSearch && control == localGoogleSearch.control && $('.gs-no-results-result', $root).length) { + $root.closest('.results-group').find('.result-tab li:last-child').click(); + return; + } + }, 1000); $root.closest(resultSel).addClass(actCls); $root.closest(googleSel).slideDown(); @@ -290,6 +292,8 @@ define(['jquery', 'analytics'], function ($, analytics) { } }; + $('#unl_results').hide(); + var render_attrs = { div: 'unl_results', tag: 'searchresults-only', diff --git a/www/templates/end-scripts.tpl.php b/www/templates/end-scripts.tpl.php index 81688c608665152718e963bf374772af1340d28e..a8ae6a8faecb0dc935492b83f7de7c9bb8dcaca8 100644 --- a/www/templates/end-scripts.tpl.php +++ b/www/templates/end-scripts.tpl.php @@ -19,7 +19,7 @@ require(['jquery', '<?php echo $localScriptUrl ?>'], function($, UNLSearch) { }).appendTo($('body')); var $localCss = $('<link>', { - 'href': './css/search-google.css' + 'href': './css/search-google.css?v=20170404' }); gSearchDefer.done(function(google) {