frio: highlight - use offset() instead of postion()

This commit is contained in:
rabuzarus 2016-08-10 14:14:58 +02:00
parent 531cba5ce5
commit cf23a81c33
2 changed files with 8 additions and 4 deletions

View file

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