Merge pull request #3479 from Hypolite/3.5.2rc
Frio: Fix Hubzilla scrollToItem
This commit is contained in:
commit
23010d8562
1 changed files with 1 additions and 2 deletions
|
@ -4,9 +4,8 @@
|
||||||
|
|
||||||
// Catch the GUID from the URL
|
// Catch the GUID from the URL
|
||||||
var itemGuid = window.location.pathname.split("/").pop();
|
var itemGuid = window.location.pathname.split("/").pop();
|
||||||
var itemGuidSafe = itemGuid.replace(/%.*/, '');
|
|
||||||
|
|
||||||
$(window).load(function(){
|
$(window).load(function(){
|
||||||
// Scroll to the Item by its GUID
|
// Scroll to the Item by its GUID
|
||||||
scrollToItem('item-' + itemGuidSafe);
|
scrollToItem('item-' + itemGuid);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue