mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
90671920da
commit
7a66aa6c07
@ -2243,7 +2243,6 @@ var UICollectionActions = actions.Actions({
|
|||||||
//'collection-last-used': null,
|
//'collection-last-used': null,
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX BUG: renaming a collection with a '$' loses selection...
|
|
||||||
// XXX would be nice to make this nested (i.e. path list) -- collection grouping...
|
// XXX would be nice to make this nested (i.e. path list) -- collection grouping...
|
||||||
browseCollections: ['Collections/$Collections...',
|
browseCollections: ['Collections/$Collections...',
|
||||||
core.doc`Collection list...
|
core.doc`Collection list...
|
||||||
@ -2601,7 +2600,7 @@ var UICollectionActions = actions.Actions({
|
|||||||
|
|
||||||
/*/ XXX experementing...
|
/*/ XXX experementing...
|
||||||
// would be nice to:
|
// would be nice to:
|
||||||
// - have an action accessible withing the action menu and standalone
|
// - have an action accessible within the action menu and standalone
|
||||||
// - topology:
|
// - topology:
|
||||||
// <collection>/
|
// <collection>/
|
||||||
// <collection-option>: <value>
|
// <collection-option>: <value>
|
||||||
|
|||||||
@ -848,6 +848,7 @@ function(list, options){
|
|||||||
})
|
})
|
||||||
.on('edit-abort edit-commit', function(_, title){
|
.on('edit-abort edit-commit', function(_, title){
|
||||||
title = title.trim() == '' ? from : title
|
title = title.trim() == '' ? from : title
|
||||||
|
title = title.replace(/\$/g, '')
|
||||||
dialog.update()
|
dialog.update()
|
||||||
.then(function(){ dialog.select(`"${title}"`) })
|
.then(function(){ dialog.select(`"${title}"`) })
|
||||||
})
|
})
|
||||||
|
|||||||
@ -42,16 +42,32 @@ var Items = module.items = function(){}
|
|||||||
// -> ???
|
// -> ???
|
||||||
//
|
//
|
||||||
var Items.Item = function(value, make, options){
|
var Items.Item = function(value, make, options){
|
||||||
|
// XXX check if we are in a container -> create if needed and update context...
|
||||||
|
// XXX ???
|
||||||
|
|
||||||
|
// create item...
|
||||||
|
return make(value, make, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
var Items.Editable = function(value){}
|
var Items.Action = function(value, make, options){
|
||||||
var Items.Selected = function(value){}
|
options = Object.create(options || {})
|
||||||
var Items.Action = function(value){}
|
options.cls = (options.cls || '') + ' action'
|
||||||
var Items.ConfirmAction = function(value){}
|
return this.Item(value, make, options)
|
||||||
|
}
|
||||||
|
var Items.Heading = function(value, make, options){
|
||||||
|
options = Object.create(options || {})
|
||||||
|
options.cls = (options.cls || '') + ' heading'
|
||||||
|
var attrs = options.doc ? {doc: options.doc} : {}
|
||||||
|
attrs.__proto__ = options.attrs || {}
|
||||||
|
options.attrs = attrs
|
||||||
|
return this.Item(value, make, options)
|
||||||
|
}
|
||||||
var Items.Empty = function(value){}
|
var Items.Empty = function(value){}
|
||||||
var Items.Separator = function(value){}
|
var Items.Separator = function(value){}
|
||||||
var Items.Spinner = function(value){}
|
var Items.Spinner = function(value){}
|
||||||
var Items.Heading = function(value){}
|
var Items.Selected = function(value){}
|
||||||
|
var Items.Editable = function(value){}
|
||||||
|
var Items.ConfirmAction = function(value){}
|
||||||
|
|
||||||
// groups...
|
// groups...
|
||||||
var Items.Group = function(items){}
|
var Items.Group = function(items){}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user