From 39a67645de7276e08bfd6965dcaa099ab38c39a5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 30 Apr 2016 04:03:41 +0300 Subject: [PATCH] some tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-slideshow.js | 18 +++++++++--------- ui (gen4)/features/ui-widgets.js | 3 ++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ui (gen4)/features/ui-slideshow.js b/ui (gen4)/features/ui-slideshow.js index e7dc3c2e..93025970 100755 --- a/ui (gen4)/features/ui-slideshow.js +++ b/ui (gen4)/features/ui-slideshow.js @@ -129,14 +129,13 @@ var SlideshowActions = actions.Actions({ }) } }) - - // update slideshow menu... - oo.client.open(function(){ - o.update() - .then(function(){ - o.select(txt) - }) - }) + // update slideshow menu... + .open(function(){ + o.update() + .then(function(){ + o.select(txt) + }) + }) }) make(['Direction: ', @@ -160,7 +159,8 @@ var SlideshowActions = actions.Actions({ }) o.dom.addClass('metadata-view tail-action') - o.select(-1) + + setTimeout(function(){ o.select(-1) }, 0) return o })], diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index c4020245..9daa5dd6 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -317,7 +317,7 @@ module.makeUIDialog = function(make){ args.shift() : (this.config['ui-default-container'] || 'Overlay') - return this[container](make.apply(this, args)) + return this[container](make.apply(this, args)).client } f.__dialog__ = true return f @@ -372,6 +372,7 @@ var DialogsActions = actions.Actions({ Panel: ['- Interface/', makeUIContainer(function(dialog){ // XXX + console.error('Panels are not yet implemented.') })],