X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fjs%2Fmod_display.js;h=86608821e5cd2ca86190ed1c8742216da5441ad3;hb=126c4774c330d9c9c9038312198c57fb653682df;hp=1faacaeb73251fb0661cbbac2df4392a49d09440;hpb=7e65d845779bf14a82ae52ca2d7c0bb20284c0b5;p=friendica.git diff --git a/view/theme/frio/js/mod_display.js b/view/theme/frio/js/mod_display.js index 1faacaeb73..86608821e5 100644 --- a/view/theme/frio/js/mod_display.js +++ b/view/theme/frio/js/mod_display.js @@ -3,9 +3,9 @@ */ // Catch the GUID from the URL -var itemID = window.location.pathname.split("/").pop(); +var itemGuid = window.location.pathname.split("/").pop(); -$(document).ready(function(){ +$(window).load(function(){ // Scroll to the Item by its GUID - scrollToItem(itemID); + scrollToItem('item-'+itemGuid); });