mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
frio: highlight - use offset() instead of postion()
This commit is contained in:
parent
531cba5ce5
commit
cf23a81c33
2 changed files with 8 additions and 4 deletions
|
@ -3,9 +3,9 @@
|
|||
*/
|
||||
|
||||
// Catch the GUID from the URL
|
||||
var itemID = window.location.pathname.split("/").pop();
|
||||
var itemGuid = window.location.pathname.split("/").pop();
|
||||
|
||||
$(document).ready(function(){
|
||||
// Scroll to the Item by its GUID
|
||||
scrollToItem(itemID);
|
||||
scrollToItem('item-'+itemGuid);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue