mirror of
https://github.com/friendica/friendica
synced 2025-04-26 20:30:11 +00:00
frio: fix for display auto position scroll + some cleanup
This commit is contained in:
parent
c7eb7ba73f
commit
7e65d84577
3 changed files with 31 additions and 14 deletions
11
view/theme/frio/js/mod_display.js
Normal file
11
view/theme/frio/js/mod_display.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* @brief Javascript for the display module
|
||||
*/
|
||||
|
||||
// Catch the GUID from the URL
|
||||
var itemID = window.location.pathname.split("/").pop();
|
||||
|
||||
$(document).ready(function(){
|
||||
// Scroll to the Item by its GUID
|
||||
scrollToItem(itemID);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue