mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	several minor tweeks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									8a19c57fab
								
							
						
					
					
						commit
						c21b779292
					
				| @ -333,7 +333,7 @@ function getImageBefore(image, ribbon, visible_only){ | |||||||
| 	// pre marked-only mode... | 	// pre marked-only mode... | ||||||
| 	//var images = $(ribbon).find('.image') | 	//var images = $(ribbon).find('.image') | ||||||
| 	if(visible_only){ | 	if(visible_only){ | ||||||
| 		var images = $(ribbon).find('.image:visible') | 		var images = $(ribbon).find('.image').filter(':visible') | ||||||
| 	} else { | 	} else { | ||||||
| 		var images = $(ribbon).find('.image') | 		var images = $(ribbon).find('.image') | ||||||
| 	} | 	} | ||||||
| @ -355,26 +355,30 @@ function getImageBefore(image, ribbon, visible_only){ | |||||||
| function nextImage(){ | function nextImage(){ | ||||||
| 	return centerImage( | 	return centerImage( | ||||||
| 		focusImage( | 		focusImage( | ||||||
|  | 			// pre marked-only mode... | ||||||
| 			//$('.current.image').next('.image'))) | 			//$('.current.image').next('.image'))) | ||||||
| 			$('.current.image').next('.image:visible'))) | 			$('.current.image').next('.image:visible'))) | ||||||
| } | } | ||||||
| function prevImage(){ | function prevImage(){ | ||||||
| 	return centerImage( | 	return centerImage( | ||||||
| 		focusImage( | 		focusImage( | ||||||
|  | 			// pre marked-only mode... | ||||||
| 			//$('.current.image').prev('.image'))) | 			//$('.current.image').prev('.image'))) | ||||||
| 			$('.current.image').prev('.image:visible'))) | 			$('.current.image').prev('.image:visible'))) | ||||||
| } | } | ||||||
| function firstImage(){ | function firstImage(){ | ||||||
| 	return centerImage( | 	return centerImage( | ||||||
| 		focusImage( | 		focusImage( | ||||||
|  | 			// pre marked-only mode... | ||||||
| 			//$('.current.image').closest('.ribbon').find('.image').first())) | 			//$('.current.image').closest('.ribbon').find('.image').first())) | ||||||
| 			$('.current.image').closest('.ribbon').find('.image:visible').first())) | 			$('.current.image').closest('.ribbon').find('.image').filter(':visible').first())) | ||||||
| } | } | ||||||
| function lastImage(){ | function lastImage(){ | ||||||
| 	return centerImage( | 	return centerImage( | ||||||
| 		focusImage( | 		focusImage( | ||||||
|  | 			// pre marked-only mode... | ||||||
| 			//$('.current.image').closest('.ribbon').find('.image').last())) | 			//$('.current.image').closest('.ribbon').find('.image').last())) | ||||||
| 			$('.current.image').closest('.ribbon').find('.image:visible').last())) | 			$('.current.image').closest('.ribbon').find('.image').filter(':visible').last())) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // NOTE: if moving is 'next' these will chose the image after the current's order. | // NOTE: if moving is 'next' these will chose the image after the current's order. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user