2016-08-10 07:07:13 -04:00
|
|
|
/**
|
|
|
|
* @brief Javascript for the display module
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Catch the GUID from the URL
|
2016-08-10 08:14:58 -04:00
|
|
|
var itemGuid = window.location.pathname.split("/").pop();
|
2017-03-03 21:45:36 -05:00
|
|
|
var itemGuidSafe = itemGuid.replace(/%.*/, '');
|
2016-08-10 07:07:13 -04:00
|
|
|
|
2016-08-10 08:26:16 -04:00
|
|
|
$(window).load(function(){
|
2016-08-10 07:07:13 -04:00
|
|
|
// Scroll to the Item by its GUID
|
2017-03-03 21:45:36 -05:00
|
|
|
scrollToItem('item-' + itemGuidSafe);
|
2016-08-10 07:07:13 -04:00
|
|
|
});
|