mirror of
https://github.com/searxng/searxng.git
synced 2025-02-18 04:55:15 +00:00
wait for img to load before hiding infobox toggle
This commit is contained in:
parent
ab20ca182c
commit
7e82817925
3 changed files with 4 additions and 4 deletions
|
@ -204,7 +204,7 @@ $(document).ready(function(){
|
||||||
$(a.target).parent().attr("aria-selected", "true");
|
$(a.target).parent().attr("aria-selected", "true");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
;$(document).ready(function() {
|
;window.addEventListener('load', function() {
|
||||||
// Hide infobox toggle if shrunk size already fits all content.
|
// Hide infobox toggle if shrunk size already fits all content.
|
||||||
$('.infobox').each(function() {
|
$('.infobox').each(function() {
|
||||||
var infobox_body = $(this).find('.infobox_body');
|
var infobox_body = $(this).find('.infobox_body');
|
||||||
|
|
4
searx/static/themes/oscar/js/searx.min.js
vendored
4
searx/static/themes/oscar/js/searx.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
$(document).ready(function() {
|
window.addEventListener('load', function() {
|
||||||
// Hide infobox toggle if shrunk size already fits all content.
|
// Hide infobox toggle if shrunk size already fits all content.
|
||||||
$('.infobox').each(function() {
|
$('.infobox').each(function() {
|
||||||
var infobox_body = $(this).find('.infobox_body');
|
var infobox_body = $(this).find('.infobox_body');
|
||||||
|
|
Loading…
Reference in a new issue