]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/mod_display.js
Merge pull request #6589 from rabuzarus/20190204_-_show_forum_account_in_vcard
[friendica.git] / view / theme / frio / js / mod_display.js
index 1faacaeb73251fb0661cbbac2df4392a49d09440..fd74ccb3cebc2ad65d27fb5cd2c504adad87883e 100644 (file)
@@ -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);
 });