From 5e440e5359ce77f6fc9b902890876b624e599518 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Wed, 10 Aug 2016 14:26:16 +0200 Subject: [PATCH] frio: highlight - wait until the whole page is loaded --- view/theme/frio/js/mod_display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/frio/js/mod_display.js b/view/theme/frio/js/mod_display.js index c93d2c006..86608821e 100644 --- a/view/theme/frio/js/mod_display.js +++ b/view/theme/frio/js/mod_display.js @@ -5,7 +5,7 @@ // Catch the GUID from the URL var itemGuid = window.location.pathname.split("/").pop(); -$(document).ready(function(){ +$(window).load(function(){ // Scroll to the Item by its GUID scrollToItem('item-'+itemGuid); });