minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-04-17 01:36:05 +03:00
parent 5e00e7164c
commit 9719df1316
2 changed files with 7 additions and 12 deletions

View File

@ -2451,20 +2451,14 @@ var FileSystemWriterUIActions = actions.Actions({
})) }))
}, },
// XXX should this be editable??? // XXX should this be editable???
// XXX make this selectable...
'base_path': function(actions, make, parent){ 'base_path': function(actions, make, parent){
var elem = make(['Current path: ', this.location.path], var elem = make(['Current path: ', this.location.path],
{ {
events: {
select: function(){ select: function(){
elem.find('.text').last().selectText() elem.find('.text').last().selectText() },
},
deselect: function(){ deselect: function(){
elem.find('.text').last().selectText(null) elem.find('.text').last().selectText(null) },
}, }) },
},
})
},
// XXX BUG: history closing errors -- non-critical... // XXX BUG: history closing errors -- non-critical...
'target_dir': function(actions, make, parent){ 'target_dir': function(actions, make, parent){
var elem = make(['$To: ', var elem = make(['$To: ',
@ -2551,7 +2545,6 @@ var FileSystemWriterUIActions = actions.Actions({
}) })
}, },
}, },
// XXX might be a good idea to show (editable?) base path???
// XXX update export state: index, crop, image... // XXX update export state: index, crop, image...
// XXX should this be visible directly??? // XXX should this be visible directly???
exportDialog: ['- File/$Export/Export...', exportDialog: ['- File/$Export/Export...',

View File

@ -1678,6 +1678,8 @@ var BrowserPrototype = {
// //
// This is a shorthand to using options.events object. // This is a shorthand to using options.events object.
itemOptionsEventShorthands: [ itemOptionsEventShorthands: [
'select',
'deselect',
'open', 'open',
'menu', 'menu',
'update', 'update',