minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-01-14 18:32:44 +04:00
parent b77e8a91a2
commit a402e4671a
2 changed files with 6 additions and 1 deletions

View File

@ -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'

View File

@ -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] == '!'){