Frio: Fix hubzilla scrollToItem

- Removed unnecessary item guid truncation
2022.09-rc
Hypolite Petovan 2017-05-20 13:18:20 -04:00
rodzic bd62f10697
commit 87e7fac397
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

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