mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									da688e2579
								
							
						
					
					
						commit
						c92b685ba8
					
				| @ -429,11 +429,11 @@ function loadImages(ref_gid, count, ribbon){ | |||||||
| 					}) | 					}) | ||||||
| 			$('.viewer').trigger('reloadedRibbon', [ribbon]) | 			$('.viewer').trigger('reloadedRibbon', [ribbon]) | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 		// do nothing...
 | 		// do nothing...
 | ||||||
| 		// ...the requested section is the same as the one already loaded...
 | 		// ...the requested section is the same as the one already loaded...
 | ||||||
| 		} else { | 		} else { | ||||||
| 			window.DEBUG && console.log('>>> (ribbon:', ribbon_i, ') NOTHING TO DO.') | 			window.DEBUG && console.log('>>> (ribbon:', ribbon_i, ') NOTHING TO DO.') | ||||||
|  | 			return images | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 	// do a partial reload...
 | 	// do a partial reload...
 | ||||||
| @ -457,6 +457,7 @@ function loadImages(ref_gid, count, ribbon){ | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// XXX is this the right place for this?
 | 	// XXX is this the right place for this?
 | ||||||
|  | 	// XXX this might be too global, do only the images loaded...
 | ||||||
| 	correctImageProportionsForRotation(images) | 	correctImageProportionsForRotation(images) | ||||||
| 	return images | 	return images | ||||||
| } | } | ||||||
| @ -718,6 +719,8 @@ function loadFile(data_path, image_path, callback){ | |||||||
| 				json = convertDataGen1(json) | 				json = convertDataGen1(json) | ||||||
| 				DATA = json.data | 				DATA = json.data | ||||||
| 				IMAGES = json.images | 				IMAGES = json.images | ||||||
|  | 				// XXX load marked data...
 | ||||||
|  | 				MARKED = [] | ||||||
| 				loadData() | 				loadData() | ||||||
| 
 | 
 | ||||||
| 			// version 2.0
 | 			// version 2.0
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user