]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/mod_display.js
Merge branch 'friendica:2022.12-rc' into new_image_presentation
[friendica.git] / view / theme / frio / js / mod_display.js
index ed126d60cdb19f2f4417d1fca9434b9cac30a587..907b0fa7ea1e0c0764fa4568fb37580a3404bf2b 100644 (file)
@@ -1,12 +1,13 @@
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
 /**
- * @brief Javascript for the display module
+ * Javascript for the display module
  */
 
 // Catch the GUID from the URL
 var itemGuid = window.location.pathname.split("/").pop();
-var itemGuidSafe = itemGuid.replace(/%.*/, '');
 
-$(window).load(function(){
+$(window).load(function () {
        // Scroll to the Item by its GUID
-       scrollToItem('item-' + itemGuidSafe);
+       scrollToItem("item-" + itemGuid);
 });
+// @license-end