mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
added .showTree(..) action...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
98f1f7fde2
commit
8085cbe12a
@ -758,6 +758,21 @@ var DialogsActions = actions.Actions({
|
|||||||
`,
|
`,
|
||||||
makeUIDialog(function(list, options){
|
makeUIDialog(function(list, options){
|
||||||
return browse.makeList(null, list, options) })],
|
return browse.makeList(null, list, options) })],
|
||||||
|
showTree: ['- Interface/',
|
||||||
|
makeUIDialog(function(list, options){
|
||||||
|
return browse.makePathList(null,
|
||||||
|
list,
|
||||||
|
Object.assign({
|
||||||
|
/*
|
||||||
|
cls: 'browse-actions',
|
||||||
|
//path: '/',
|
||||||
|
flat: false,
|
||||||
|
traversable: true,
|
||||||
|
pathPrefix: '/',
|
||||||
|
//fullPathEdit: true,
|
||||||
|
//*/
|
||||||
|
}, options || {})) })],
|
||||||
|
|
||||||
// XXX do we need to split the options???
|
// XXX do we need to split the options???
|
||||||
showEditableList: ['- Interface/',
|
showEditableList: ['- Interface/',
|
||||||
core.doc`Show editable list dialog...
|
core.doc`Show editable list dialog...
|
||||||
|
|||||||
@ -4389,7 +4389,7 @@ PathListPrototype.options = {
|
|||||||
var match = function(a, path){
|
var match = function(a, path){
|
||||||
var marker = that.options.itemShortcutMarker
|
var marker = that.options.itemShortcutMarker
|
||||||
marker = marker && RegExp(marker, 'g')
|
marker = marker && RegExp(marker, 'g')
|
||||||
path = marker ? e.replace(marker, '$1') : path
|
path = marker ? path.replace(marker, '$1') : path
|
||||||
// NOTE: might be good to make this recursive when expanding
|
// NOTE: might be good to make this recursive when expanding
|
||||||
// pattern support...
|
// pattern support...
|
||||||
return a
|
return a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user