mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-04 13:20:10 +00:00
added tag setup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
86ff6e82bb
commit
9faac8a6cd
@ -350,6 +350,9 @@ function loadFileImages(path, no_load_diffs){
|
|||||||
|
|
||||||
res.done(function(images){
|
res.done(function(images){
|
||||||
IMAGES = images
|
IMAGES = images
|
||||||
|
|
||||||
|
// XXX is this the correct spot to do this???
|
||||||
|
$('.viewer').trigger('imagesLoaded')
|
||||||
})
|
})
|
||||||
|
|
||||||
return res
|
return res
|
||||||
@ -615,7 +618,8 @@ function loadDir(path, no_preview_processing, prefix){
|
|||||||
res.resolve()
|
res.resolve()
|
||||||
})
|
})
|
||||||
.fail(function(){
|
.fail(function(){
|
||||||
bubbleProgress('Raw directory', loadRawDir(orig_path, no_preview_processing), res)
|
bubbleProgress('Raw directory',
|
||||||
|
loadRawDir(orig_path, no_preview_processing), res)
|
||||||
})
|
})
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|||||||
20
ui/tags.js
20
ui/tags.js
@ -289,5 +289,25 @@ function cropTagged(tags, cmp, keep_ribbons, keep_unloaded_gids){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* Setup...
|
||||||
|
*/
|
||||||
|
|
||||||
|
function setupTags(viewer){
|
||||||
|
console.log('Tags: setup...')
|
||||||
|
|
||||||
|
viewer
|
||||||
|
.on('imagesLoaded', function(){
|
||||||
|
TAGS = []
|
||||||
|
showStatusQ('Tags: building index...')
|
||||||
|
// XXX should this be sync???
|
||||||
|
buildTagsFromImages()
|
||||||
|
showStatusQ('Tags: building index: done.')
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
SETUP_BINDINGS.push(setupTags)
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* vim:set ts=4 sw=4 : */
|
* vim:set ts=4 sw=4 : */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user