mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									a507511378
								
							
						
					
					
						commit
						a5d64b031c
					
				
							
								
								
									
										12
									
								
								ui/data.js
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								ui/data.js
									
									
									
									
									
								
							| @ -1826,11 +1826,13 @@ function sortImagesByNameWithSeqOverflow(reverse, proximity){ | |||||||
| 		var need_to_fix = true | 		var need_to_fix = true | ||||||
| 
 | 
 | ||||||
| 		function cmp(a, b){ | 		function cmp(a, b){ | ||||||
| 			// check filename compliance...
 | 			if(need_to_fix){ | ||||||
| 			var aa = pattern.test(IMAGES[a].path.split('/').pop()) | 				// check filename compliance...
 | ||||||
| 			var bb = pattern.test(IMAGES[b].path.split('/').pop()) | 				var aa = pattern.test(IMAGES[a].path.split('/').pop()) | ||||||
| 			if(need_to_fix && !aa && !bb){ | 				var bb = pattern.test(IMAGES[b].path.split('/').pop()) | ||||||
| 				need_to_fix = false | 				if(!aa && !bb){ | ||||||
|  | 					need_to_fix = false | ||||||
|  | 				} | ||||||
| 			} | 			} | ||||||
| 			return imageNameCmp(a, b) | 			return imageNameCmp(a, b) | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user