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 @@ +