mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	more minor changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									c7e509abef
								
							
						
					
					
						commit
						0c4c25fa0b
					
				| @ -189,6 +189,10 @@ function shiftImageDownNewRibbon(image){ | ||||
| // XXX | ||||
| 
 | ||||
| 
 | ||||
| function focusImage(image){ | ||||
| 	image.closest('.viewer').find('.current.image').removeClass('current') | ||||
| 	return image.addClass('current') | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @ -196,8 +200,7 @@ function shiftImageDownNewRibbon(image){ | ||||
| // NOTE: this is on purpose done relative... | ||||
| function clickHandler(evt){ | ||||
| 	var img = $(evt.target).closest('.image') | ||||
| 	img.closest('.viewer').find('.current.image').removeClass('current') | ||||
| 	img.addClass('current') | ||||
| 	focusImage(img) | ||||
| } | ||||
| 
 | ||||
| // setup... | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user