From d6d3a608a50d7091106db4533bea2d1dce699ed6 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 10 Apr 2017 14:46:31 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 6f2c0c70..bd22737a 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1327,7 +1327,7 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({ handlers: [ ['updateImage', - function(){ + function(_, gid){ var that = this var img = this.ribbons.getImage(gid) @@ -1338,7 +1338,11 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({ event.preventDefault() event.stopPropagation() - that.browseActions('/Image/') + var gid = that.ribbons.getElemGID(img) + + that + .focusImage(gid) + .browseActions('/Image/') }) }], ['load',