Merge pull request #3479 from Hypolite/3.5.2rc

Frio: Fix Hubzilla scrollToItem
This commit is contained in:
Michael Vogel 2017-05-20 22:13:37 +02:00 committed by GitHub
commit 23010d8562

View file

@ -4,9 +4,8 @@
// Catch the GUID from the URL
var itemGuid = window.location.pathname.split("/").pop();
var itemGuidSafe = itemGuid.replace(/%.*/, '');
$(window).load(function(){
// Scroll to the Item by its GUID
scrollToItem('item-' + itemGuidSafe);
scrollToItem('item-' + itemGuid);
});