mirror of
https://github.com/friendica/friendica
synced 2025-04-24 22:30:11 +00:00
Strip @hubzilla.server part from guid for autoscrolling purpuses
This commit is contained in:
parent
4d591c4a07
commit
3ea830e221
2 changed files with 4 additions and 3 deletions
|
@ -4,8 +4,9 @@
|
|||
|
||||
// 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-'+itemGuid);
|
||||
scrollToItem('item-' + itemGuidSafe);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue