mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									49c1bf033f
								
							
						
					
					
						commit
						cf9d6b301f
					
				
							
								
								
									
										14
									
								
								ui/ui.js
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								ui/ui.js
									
									
									
									
									
								
							| @ -969,29 +969,29 @@ function loadDirectoryDialog(dfl){ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| function sortImagesDialog(message){ | function sortImagesDialog(){ | ||||||
| 
 | 
 | ||||||
| 	updateStatus('Sort...').show() | 	updateStatus('Sort...').show() | ||||||
| 
 | 
 | ||||||
| 	//message = message == null ? 'Sort images by: | By default in ascending order.' : message
 | 	var alg = 'Sort images by (ascending):' | ||||||
| 	message = message == null ? 'Sort images by:' : message | 	var rev = 'Reverse order' | ||||||
| 
 | 
 | ||||||
| 	cfg = {} | 	cfg = {} | ||||||
| 	cfg[message] = [ | 	cfg[alg] = [ | ||||||
| 		'Date',  | 		'Date',  | ||||||
| 		'Sequence number',  | 		'Sequence number',  | ||||||
| 		'Sequence number with overflow',  | 		'Sequence number with overflow',  | ||||||
| 		'File name'  | 		'File name'  | ||||||
| 	] | 	] | ||||||
| 	cfg['Descending'] = false | 	cfg[rev] = false | ||||||
| 
 | 
 | ||||||
| 	formDialog(null, '',  | 	formDialog(null, '',  | ||||||
| 			cfg, | 			cfg, | ||||||
| 			'OK',  | 			'OK',  | ||||||
| 			'sortImagesDialog') | 			'sortImagesDialog') | ||||||
| 		.done(function(res){ | 		.done(function(res){ | ||||||
| 			var reverse = res['Descending'] | 			var reverse = res[rev] | ||||||
| 			res = res[message] | 			res = res[alg] | ||||||
| 
 | 
 | ||||||
| 			if(/Date/i.test(res)){ | 			if(/Date/i.test(res)){ | ||||||
| 				var method = sortImagesByDate | 				var method = sortImagesByDate | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user