Frio: Fix hubzilla scrollToItem

- Removed unnecessary item guid truncation
This commit is contained in:
Hypolite Petovan 2017-05-20 13:18:20 -04:00
parent bd62f10697
commit 87e7fac397

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);
});