Commit a16558ce authored by Tyler R Lemburg's avatar Tyler R Lemburg
Browse files

Cache bust CSS and fix auto-switching

parent e6fe3a1c
......@@ -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',
......
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment