mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 10:50:08 +00:00 
			
		
		
		
	minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									b77e8a91a2
								
							
						
					
					
						commit
						a402e4671a
					
				| @ -325,7 +325,7 @@ function filterImagesDialog(){ | |||||||
| 				+'All filter text fields support\n' | 				+'All filter text fields support\n' | ||||||
| 				+'regular expressions.\n' | 				+'regular expressions.\n' | ||||||
| 				+'\n' | 				+'\n' | ||||||
| 				+'Adding a "!" to any text filter\n' | 				+'Prepending a "!" to any text filter\n' | ||||||
| 				+'will negate it, selecting unmatching\n' | 				+'will negate it, selecting unmatching\n' | ||||||
| 				+'images only.\n' | 				+'images only.\n' | ||||||
| 				+'\n' | 				+'\n' | ||||||
|  | |||||||
| @ -1491,11 +1491,16 @@ function makePrevFromListAction(get_closest, get_list, restrict_to_ribbon){ | |||||||
| //
 | //
 | ||||||
| // XXX also need a date filter -- separate function?
 | // XXX also need a date filter -- separate function?
 | ||||||
| // XXX need a number filter with support of advanced comparisons...
 | // XXX need a number filter with support of advanced comparisons...
 | ||||||
|  | // XXX add functions as patterns...
 | ||||||
| function filterGIDs(filter, gids, data, images){ | function filterGIDs(filter, gids, data, images){ | ||||||
| 	images = images == null ? IMAGES : images | 	images = images == null ? IMAGES : images | ||||||
| 	gids = gids == null ? getLoadedGIDs(null, data) : gids | 	gids = gids == null ? getLoadedGIDs(null, data) : gids | ||||||
| 
 | 
 | ||||||
| 	// normalize filter...
 | 	// normalize filter...
 | ||||||
|  | 	// 	in format:
 | ||||||
|  | 	// 		<attr>: <pattern>
 | ||||||
|  | 	// 	out format:
 | ||||||
|  | 	// 		<attr>: [ <regexp>, <expected-match-result> ]
 | ||||||
| 	for(var k in filter){ | 	for(var k in filter){ | ||||||
| 		if(typeof(filter[k]) == typeof('str')){ | 		if(typeof(filter[k]) == typeof('str')){ | ||||||
| 			if(filter[k][0] == '!'){ | 			if(filter[k][0] == '!'){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user