mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +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',
|
['updateImage',
|
||||||
function(_, gid){
|
function(_, gid){
|
||||||
var that = this
|
var that = this
|
||||||
|
|
||||||
var img = this.ribbons.getImage(gid)
|
var img = this.ribbons.getImage(gid)
|
||||||
|
|
||||||
!img.data('context-menu')
|
!img.data('context-menu')
|
||||||
@ -1338,10 +1339,10 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({
|
|||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
|
|
||||||
var gid = that.ribbons.getElemGID(img)
|
var g = gid || that.ribbons.getElemGID(img)
|
||||||
|
|
||||||
that
|
that
|
||||||
.focusImage(gid)
|
.focusImage(g)
|
||||||
.browseActions('/Image/')
|
.browseActions('/Image/')
|
||||||
})
|
})
|
||||||
}],
|
}],
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
<meta charset="utf-8" />
|
||||||
<meta name="msapplication-tap-highlight" content="no" />
|
<meta name="msapplication-tap-highlight" content="no" />
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, user-scalable=no" />
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user