mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10: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'
|
||||
+'regular expressions.\n'
|
||||
+'\n'
|
||||
+'Adding a "!" to any text filter\n'
|
||||
+'Prepending a "!" to any text filter\n'
|
||||
+'will negate it, selecting unmatching\n'
|
||||
+'images only.\n'
|
||||
+'\n'
|
||||
|
||||
@ -1491,11 +1491,16 @@ function makePrevFromListAction(get_closest, get_list, restrict_to_ribbon){
|
||||
//
|
||||
// XXX also need a date filter -- separate function?
|
||||
// XXX need a number filter with support of advanced comparisons...
|
||||
// XXX add functions as patterns...
|
||||
function filterGIDs(filter, gids, data, images){
|
||||
images = images == null ? IMAGES : images
|
||||
gids = gids == null ? getLoadedGIDs(null, data) : gids
|
||||
|
||||
// normalize filter...
|
||||
// in format:
|
||||
// <attr>: <pattern>
|
||||
// out format:
|
||||
// <attr>: [ <regexp>, <expected-match-result> ]
|
||||
for(var k in filter){
|
||||
if(typeof(filter[k]) == typeof('str')){
|
||||
if(filter[k][0] == '!'){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user