X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fjs%2Fmod_display.js;h=fd74ccb3cebc2ad65d27fb5cd2c504adad87883e;hb=cf9a65cded8e8f270aedbb3ba46d5fe2fe351b4c;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..fd74ccb3ce 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); });