mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									d51f567a15
								
							
						
					
					
						commit
						ad3ed175aa
					
				| @ -92,8 +92,13 @@ function setCurrentImage(){ | |||||||
| 	// position the field and ribbons...
 | 	// position the field and ribbons...
 | ||||||
| 	centerSquare() | 	centerSquare() | ||||||
| 
 | 
 | ||||||
| 	// center other ribbons relative to current image...
 | 	alignRibbons() | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // center other ribbons relative to current image...
 | ||||||
|  | function alignRibbons(){ | ||||||
| 	// XXX only two ribbons are positioned at this point...
 | 	// XXX only two ribbons are positioned at this point...
 | ||||||
|  | 	// XXX might be goot to move this to a more generic location...
 | ||||||
| 	var id = $('.current.image').attr('id') | 	var id = $('.current.image').attr('id') | ||||||
| 	var directions = ['prev', 'next'] | 	var directions = ['prev', 'next'] | ||||||
| 	for(var i in directions){ | 	for(var i in directions){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user