mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
added menu on context menu on status indicators in status bar + minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8cd61d9594
commit
655c58be91
@ -14,6 +14,9 @@
|
|||||||
-webkit-transform-style: preserve-3d;
|
-webkit-transform-style: preserve-3d;
|
||||||
-moz-transform-style: preserve-3d;
|
-moz-transform-style: preserve-3d;
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
|
|
||||||
|
/* XXX try to avoid this... */
|
||||||
|
z-index: 9999;
|
||||||
}
|
}
|
||||||
.overlay-widget~.overlay-widget {
|
.overlay-widget~.overlay-widget {
|
||||||
background: rgba(0, 0, 0, 0.3);
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
|||||||
@ -167,6 +167,7 @@ var StatusBarActions = actions.Actions({
|
|||||||
},
|
},
|
||||||
path: 'gid',
|
path: 'gid',
|
||||||
|
|
||||||
|
// XXX show menu in the appropriate corner...
|
||||||
mark: function(item, gid, img){
|
mark: function(item, gid, img){
|
||||||
gid = gid || this.current
|
gid = gid || this.current
|
||||||
var that = this
|
var that = this
|
||||||
@ -181,6 +182,14 @@ var StatusBarActions = actions.Actions({
|
|||||||
.click(function(){
|
.click(function(){
|
||||||
that['toggle'+type.capitalize()]()
|
that['toggle'+type.capitalize()]()
|
||||||
})
|
})
|
||||||
|
// toggle action menu...
|
||||||
|
// XXX show this in the appropriate corner...
|
||||||
|
.on('contextmenu', function(){
|
||||||
|
event.preventDefault()
|
||||||
|
event.stopPropagation()
|
||||||
|
|
||||||
|
that.browseActions('/'+ type.capitalize() +'/')
|
||||||
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
var type = item.attr('type')
|
var type = item.attr('type')
|
||||||
|
|||||||
@ -28,6 +28,11 @@ var OverlayClassPrototype = {
|
|||||||
.click(function(){
|
.click(function(){
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
})
|
})
|
||||||
|
.on('contextmenu', function(){
|
||||||
|
event.preventDefault()
|
||||||
|
event.stopPropagation()
|
||||||
|
return false
|
||||||
|
})
|
||||||
.append(client))
|
.append(client))
|
||||||
|
|
||||||
if(options.focusable){
|
if(options.focusable){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user