mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4b1c5d2e45
commit
10f6cbf651
@ -58,6 +58,11 @@ body {
|
|||||||
0 -50px 10px -50px gray inset;
|
0 -50px 10px -50px gray inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item.path .text:before {
|
||||||
|
content: "/";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
.browse-widget .list .item .button.toggle-collapse {
|
.browse-widget .list .item .button.toggle-collapse {
|
||||||
float: left;
|
float: left;
|
||||||
@ -159,7 +164,10 @@ requirejs([
|
|||||||
|
|
||||||
// XXX split this into several dialogues, show each and then combine...
|
// XXX split this into several dialogues, show each and then combine...
|
||||||
dialog = browser.Browser(function(make){
|
dialog = browser.Browser(function(make){
|
||||||
make('path', {id:'selected_path'})
|
make('path', {
|
||||||
|
id:'selected_path',
|
||||||
|
cls: 'path',
|
||||||
|
})
|
||||||
make.Separator()
|
make.Separator()
|
||||||
|
|
||||||
make(['list', 'of', 'text'])
|
make(['list', 'of', 'text'])
|
||||||
@ -243,7 +251,7 @@ requirejs([
|
|||||||
// XXX EXPEREMENT -- need to wrap this into partial .update(..)
|
// XXX EXPEREMENT -- need to wrap this into partial .update(..)
|
||||||
.focus(function(){
|
.focus(function(){
|
||||||
var e = this.get({id: 'selected_path'})
|
var e = this.get({id: 'selected_path'})
|
||||||
e.value = this.path
|
e.value = this.pathArray
|
||||||
this.renderItem(e) })
|
this.renderItem(e) })
|
||||||
|
|
||||||
dialog.container = $('.container').first()[0]
|
dialog.container = $('.container').first()[0]
|
||||||
|
|||||||
@ -977,14 +977,17 @@ var BaseBrowserPrototype = {
|
|||||||
// XXX need to normalizePath(..)
|
// XXX need to normalizePath(..)
|
||||||
// ...array .value is not compliant with POLS
|
// ...array .value is not compliant with POLS
|
||||||
get path(){
|
get path(){
|
||||||
return this.__items != null ?
|
return (this.pathArray || []).join('/') },
|
||||||
this.get('focused',
|
|
||||||
function(e, i, p){ return p.join('/') })
|
|
||||||
// XXX do we use .options.path???
|
|
||||||
: (this.options || {}).path },
|
|
||||||
set path(value){
|
set path(value){
|
||||||
this.load(value) },
|
this.load(value) },
|
||||||
|
// XXX
|
||||||
|
get pathArray(){
|
||||||
|
return this.__items != null ?
|
||||||
|
this.get('focused',
|
||||||
|
function(e, i, p){ return p })
|
||||||
|
// XXX do we use .options.path???
|
||||||
|
// XXX is this an array???
|
||||||
|
: (this.options || {}).path },
|
||||||
|
|
||||||
// Length...
|
// Length...
|
||||||
//
|
//
|
||||||
@ -3168,8 +3171,9 @@ var HTMLItemPrototype = {
|
|||||||
// the new .dom value is replaced correctly but it is detached,
|
// the new .dom value is replaced correctly but it is detached,
|
||||||
// thus we see no change...
|
// thus we see no change...
|
||||||
set elem(value){
|
set elem(value){
|
||||||
this.dom
|
this.dom ?
|
||||||
&& this.elem.replaceWith(value) },
|
this.elem.replaceWith(value)
|
||||||
|
: (this.dom = value)},
|
||||||
}
|
}
|
||||||
|
|
||||||
var HTMLItem =
|
var HTMLItem =
|
||||||
@ -4099,6 +4103,7 @@ var HTMLBrowserPrototype = {
|
|||||||
button_keys[k].click() } })
|
button_keys[k].click() } })
|
||||||
|
|
||||||
item.dom = elem
|
item.dom = elem
|
||||||
|
//item.elem = elem
|
||||||
|
|
||||||
return elem
|
return elem
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user