]> git.mxchange.org Git - friendica.git/commitdiff
Frio: Fix hubzilla scrollToItem
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 20 May 2017 17:18:20 +0000 (13:18 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 20 May 2017 17:18:20 +0000 (13:18 -0400)
- Removed unnecessary item guid truncation

view/theme/frio/js/mod_display.js

index ed126d60cdb19f2f4417d1fca9434b9cac30a587..fd74ccb3cebc2ad65d27fb5cd2c504adad87883e 100644 (file)
@@ -4,9 +4,8 @@
 
 // Catch the GUID from the URL
 var itemGuid = window.location.pathname.split("/").pop();
-var itemGuidSafe = itemGuid.replace(/%.*/, '');
 
 $(window).load(function(){
        // Scroll to the Item by its GUID
-       scrollToItem('item-' + itemGuidSafe);
+       scrollToItem('item-' + itemGuid);
 });