mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +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 | ||||
| 
 | ||||
| 		function cmp(a, b){ | ||||
| 			// check filename compliance...
 | ||||
| 			var aa = pattern.test(IMAGES[a].path.split('/').pop()) | ||||
| 			var bb = pattern.test(IMAGES[b].path.split('/').pop()) | ||||
| 			if(need_to_fix && !aa && !bb){ | ||||
| 				need_to_fix = false | ||||
| 			if(need_to_fix){ | ||||
| 				// check filename compliance...
 | ||||
| 				var aa = pattern.test(IMAGES[a].path.split('/').pop()) | ||||
| 				var bb = pattern.test(IMAGES[b].path.split('/').pop()) | ||||
| 				if(!aa && !bb){ | ||||
| 					need_to_fix = false | ||||
| 				} | ||||
| 			} | ||||
| 			return imageNameCmp(a, b) | ||||
| 		} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user