From 9719df1316c6679c7935f1a2f03c1cbdbd5f1b52 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 17 Apr 2019 01:36:05 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 17 +++++------------ ui (gen4)/lib/widget/browse.js | 2 ++ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index cb2b530f..94182814 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -2451,20 +2451,14 @@ var FileSystemWriterUIActions = actions.Actions({ })) }, // XXX should this be editable??? - // XXX make this selectable... 'base_path': function(actions, make, parent){ var elem = make(['Current path: ', this.location.path], { - events: { - select: function(){ - elem.find('.text').last().selectText() - }, - deselect: function(){ - elem.find('.text').last().selectText(null) - }, - }, - }) - }, + select: function(){ + elem.find('.text').last().selectText() }, + deselect: function(){ + elem.find('.text').last().selectText(null) }, + }) }, // XXX BUG: history closing errors -- non-critical... 'target_dir': function(actions, make, parent){ 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 should this be visible directly??? exportDialog: ['- File/$Export/Export...', diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index 7516246a..ff9a633c 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -1678,6 +1678,8 @@ var BrowserPrototype = { // // This is a shorthand to using options.events object. itemOptionsEventShorthands: [ + 'select', + 'deselect', 'open', 'menu', 'update',