mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
started work on load/open gui...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bdcac4190e
commit
5e5caa0492
@ -161,11 +161,11 @@ function loadJSON(path){
|
|||||||
// ...see if this can be split into more generic
|
// ...see if this can be split into more generic
|
||||||
// sections...
|
// sections...
|
||||||
// XXX change path handling:
|
// XXX change path handling:
|
||||||
// 1) explicit index -- ends with INDEX_DIR
|
// 1) explicit index -- ends with INDEX_DIR (works)
|
||||||
// -> load directly...
|
// -> load directly...
|
||||||
// 2) implicit index -- path contains INDEX_DIR
|
// 2) implicit index -- path contains INDEX_DIR (works)
|
||||||
// -> append INDEX_DIR and (1)...
|
// -> append INDEX_DIR and (1)...
|
||||||
// 3) path is a pattern (contains glob wildcards)
|
// 3) path is a pattern (contains glob wildcards) (works)
|
||||||
// -> search + load
|
// -> search + load
|
||||||
// 4) non of the above...
|
// 4) non of the above...
|
||||||
// a) error
|
// a) error
|
||||||
|
|||||||
@ -2524,7 +2524,13 @@ var ActionTreeActions = actions.Actions({
|
|||||||
|
|
||||||
// we got an argument and can exit...
|
// we got an argument and can exit...
|
||||||
if(path){
|
if(path){
|
||||||
console.log('PATH:', path)
|
console.log('PATH:', path.slice(1))
|
||||||
|
|
||||||
|
// XXX use logger...
|
||||||
|
// XXX this does not work because in the last path
|
||||||
|
// element ' ' is replaced with a '\\ '...
|
||||||
|
this.loadPath && this.loadPath(path.slice(1))
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2533,6 +2539,7 @@ var ActionTreeActions = actions.Actions({
|
|||||||
var o = overlay.Overlay($('body'),
|
var o = overlay.Overlay($('body'),
|
||||||
require('./lib/widget/browse-walk').makeWalk(null, '/')
|
require('./lib/widget/browse-walk').makeWalk(null, '/')
|
||||||
.open(function(evt, path){
|
.open(function(evt, path){
|
||||||
|
|
||||||
o.close()
|
o.close()
|
||||||
|
|
||||||
// close the parent ui...
|
// close the parent ui...
|
||||||
@ -2540,6 +2547,7 @@ var ActionTreeActions = actions.Actions({
|
|||||||
&& parent.close
|
&& parent.close
|
||||||
&& parent.close()
|
&& parent.close()
|
||||||
|
|
||||||
|
// do the actual opening...
|
||||||
that.pathListerTest(path)
|
that.pathListerTest(path)
|
||||||
}))
|
}))
|
||||||
.close(function(){
|
.close(function(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user