mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-16 08:11:39 +00:00
now loadFileImages accepts base, not just null or an explicit path...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8159a27407
commit
aee42a4370
15
ui/files.js
15
ui/files.js
@ -251,6 +251,14 @@ function loadFileImages(path, no_load_diffs){
|
||||
IMAGES_FILE_PATTERN,
|
||||
IMAGES_DIFF_FILE_PATTERN)
|
||||
|
||||
// explicit base dir...
|
||||
} else if(!/\.json$/i.test(path)) {
|
||||
var base = normalizePath(path +'/'+ CACHE_DIR)
|
||||
var loader = loadLatestFile(base,
|
||||
IMAGES_FILE_DEFAULT,
|
||||
IMAGES_FILE_PATTERN,
|
||||
IMAGES_DIFF_FILE_PATTERN)
|
||||
|
||||
// explicit path...
|
||||
} else {
|
||||
var loader = loadLatestFile(normalizePath(path))
|
||||
@ -382,9 +390,10 @@ function loadFileState(path, prefix){
|
||||
// XXX load config...
|
||||
// load images...
|
||||
bubbleProgress(prefix,
|
||||
loadFileImages(DATA.image_file != null ?
|
||||
normalizePath(DATA.image_file, base)
|
||||
: null), res, true),
|
||||
loadFileImages(base), res, true),
|
||||
//loadFileImages(DATA.image_file != null ?
|
||||
// normalizePath(DATA.image_file, base)
|
||||
// : null), res, true),
|
||||
// load marks if available...
|
||||
bubbleProgress(prefix,
|
||||
loadFileMarks(), res, true))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user