Frio: Fix hubzilla scrollToItem
- Removed unnecessary item guid truncation
This commit is contained in:
		
					parent
					
						
							
								bd62f10697
							
						
					
				
			
			
				commit
				
					
						87e7fac397
					
				
			
		
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue