mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b25c4093f5
commit
4fee1247b2
@ -422,10 +422,12 @@ var StatusBarActions = actions.Actions({
|
|||||||
// XXX should this show a dialog???
|
// XXX should this show a dialog???
|
||||||
editStatusBarIndex: ['- Interface/',
|
editStatusBarIndex: ['- Interface/',
|
||||||
function(){
|
function(){
|
||||||
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
if((this.config['status-bar-index'] || {} )['editable']){
|
||||||
|
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
||||||
|
|
||||||
// XXX do this better...
|
// XXX do this better...
|
||||||
this.ribbons.viewer.find('.global-info .index .position').focus().click()
|
this.ribbons.viewer.find('.global-info .index .position').focus().click()
|
||||||
|
}
|
||||||
}],
|
}],
|
||||||
toggleStatusBarIndexMode: ['Interface/Status bar index mode',
|
toggleStatusBarIndexMode: ['Interface/Status bar index mode',
|
||||||
toggler.CSSClassToggler(
|
toggler.CSSClassToggler(
|
||||||
@ -434,6 +436,7 @@ var StatusBarActions = actions.Actions({
|
|||||||
function(state){
|
function(state){
|
||||||
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
||||||
|
|
||||||
|
// prepare for saving the config...
|
||||||
this.config['status-bar-index'] =
|
this.config['status-bar-index'] =
|
||||||
JSON.parse(JSON.stringify(this.config['status-bar-index']))
|
JSON.parse(JSON.stringify(this.config['status-bar-index']))
|
||||||
this.config['status-bar-index']['mode'] = state
|
this.config['status-bar-index']['mode'] = state
|
||||||
|
|||||||
@ -276,10 +276,11 @@ module.GLOBAL_KEYBOARD = {
|
|||||||
'ctrl+shift': 'redoLast',
|
'ctrl+shift': 'redoLast',
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX for debug...
|
|
||||||
G: {
|
G: {
|
||||||
default: 'editStatusBarIndex!',
|
default: 'editStatusBarIndex!',
|
||||||
shift: 'toggleStatusBarIndexMode!',
|
shift: 'toggleStatusBarIndexMode!',
|
||||||
|
|
||||||
|
// XXX for debug...
|
||||||
ctrl: function(){ $('.viewer').toggleClass('visible-gid') },
|
ctrl: function(){ $('.viewer').toggleClass('visible-gid') },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user