Browse Source

wait for img to load before hiding infobox toggle

Marc Abonce Seguin 4 years ago
parent
commit
7e82817925

+ 1 - 1
searx/static/themes/oscar/js/searx.js

@@ -204,7 +204,7 @@ $(document).ready(function(){
         $(a.target).parent().attr("aria-selected", "true");
     });
 });
-;$(document).ready(function() {
+;window.addEventListener('load', function() {
     // Hide infobox toggle if shrunk size already fits all content.
     $('.infobox').each(function() {
         var infobox_body = $(this).find('.infobox_body');

File diff suppressed because it is too large
+ 0 - 1
searx/static/themes/oscar/js/searx.min.js


+ 1 - 1
searx/static/themes/oscar/js/searx_src/infobox.js

@@ -1,4 +1,4 @@
-$(document).ready(function() {
+window.addEventListener('load', function() {
     // Hide infobox toggle if shrunk size already fits all content.
     $('.infobox').each(function() {
         var infobox_body = $(this).find('.infobox_body');

Some files were not shown because too many files changed in this diff