mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d6d3a608a5
commit
9329bc8115
@ -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/')
|
||||
})
|
||||
}],
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta name="msapplication-tap-highlight" content="no" />
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no" />
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user