From 9b84b686abee1e94805916ef446112e00bc0ee79 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 3 Dec 2016 00:05:31 +0300 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/app.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui (gen4)/features/app.js b/ui (gen4)/features/app.js index 2bef9bdf..4ed44009 100755 --- a/ui (gen4)/features/app.js +++ b/ui (gen4)/features/app.js @@ -246,7 +246,7 @@ module.AppControl = core.ImageGridFeatures.Feature({ //--------------------------------------------------------------------- // Fullscreen app control buttons... -var AppControllsActions = actions.Actions({ +var AppButtonsActions = actions.Actions({ config: { 'app-buttons': { // XXX not sure about this... @@ -262,8 +262,8 @@ var AppControllsActions = actions.Actions({ }, }) -var AppControlls = -module.AppControlls = core.ImageGridFeatures.Feature({ +var AppButtons = +module.AppButtons = core.ImageGridFeatures.Feature({ title: '', doc: '', @@ -277,13 +277,15 @@ module.AppControlls = core.ImageGridFeatures.Feature({ 'ui-status-bar', ], - actions: AppControllsActions, + actions: AppButtonsActions, handlers: [ - ['start.pre toggleFullScreen', + ['start.pre', function(){ this.toggleAppButtons('on') - + }], + ['start toggleFullScreen', + function(){ var fullscreen = this.toggleFullScreen('?') var buttons = this.ribbons.viewer.find('.app-buttons')