From 9329bc81153e87624ddd4d4c2bc96dd9ce493d9f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 13 Apr 2017 17:28:20 +0300 Subject: [PATCH] minor tweak... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 5 +++-- ui (gen4)/index.html | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index bd22737a..723915a2 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1329,6 +1329,7 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({ ['updateImage', function(_, gid){ var that = this + var img = this.ribbons.getImage(gid) !img.data('context-menu') @@ -1338,10 +1339,10 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({ event.preventDefault() event.stopPropagation() - var gid = that.ribbons.getElemGID(img) + var g = gid || that.ribbons.getElemGID(img) that - .focusImage(gid) + .focusImage(g) .browseActions('/Image/') }) }], diff --git a/ui (gen4)/index.html b/ui (gen4)/index.html index 223decf2..6bf41713 100755 --- a/ui (gen4)/index.html +++ b/ui (gen4)/index.html @@ -2,6 +2,7 @@ +