mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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
|
||||
// sections...
|
||||
// XXX change path handling:
|
||||
// 1) explicit index -- ends with INDEX_DIR
|
||||
// 1) explicit index -- ends with INDEX_DIR (works)
|
||||
// -> load directly...
|
||||
// 2) implicit index -- path contains INDEX_DIR
|
||||
// 2) implicit index -- path contains INDEX_DIR (works)
|
||||
// -> append INDEX_DIR and (1)...
|
||||
// 3) path is a pattern (contains glob wildcards)
|
||||
// 3) path is a pattern (contains glob wildcards) (works)
|
||||
// -> search + load
|
||||
// 4) non of the above...
|
||||
// a) error
|
||||
|
||||
@ -2524,7 +2524,13 @@ var ActionTreeActions = actions.Actions({
|
||||
|
||||
// we got an argument and can exit...
|
||||
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
|
||||
}
|
||||
|
||||
@ -2533,6 +2539,7 @@ var ActionTreeActions = actions.Actions({
|
||||
var o = overlay.Overlay($('body'),
|
||||
require('./lib/widget/browse-walk').makeWalk(null, '/')
|
||||
.open(function(evt, path){
|
||||
|
||||
o.close()
|
||||
|
||||
// close the parent ui...
|
||||
@ -2540,6 +2547,7 @@ var ActionTreeActions = actions.Actions({
|
||||
&& parent.close
|
||||
&& parent.close()
|
||||
|
||||
// do the actual opening...
|
||||
that.pathListerTest(path)
|
||||
}))
|
||||
.close(function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user