mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10: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???
|
||||
editStatusBarIndex: ['- Interface/',
|
||||
function(){
|
||||
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
||||
if((this.config['status-bar-index'] || {} )['editable']){
|
||||
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
||||
|
||||
// XXX do this better...
|
||||
this.ribbons.viewer.find('.global-info .index .position').focus().click()
|
||||
// XXX do this better...
|
||||
this.ribbons.viewer.find('.global-info .index .position').focus().click()
|
||||
}
|
||||
}],
|
||||
toggleStatusBarIndexMode: ['Interface/Status bar index mode',
|
||||
toggler.CSSClassToggler(
|
||||
@ -434,6 +436,7 @@ var StatusBarActions = actions.Actions({
|
||||
function(state){
|
||||
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
||||
|
||||
// prepare for saving the config...
|
||||
this.config['status-bar-index'] =
|
||||
JSON.parse(JSON.stringify(this.config['status-bar-index']))
|
||||
this.config['status-bar-index']['mode'] = state
|
||||
|
||||
@ -276,10 +276,11 @@ module.GLOBAL_KEYBOARD = {
|
||||
'ctrl+shift': 'redoLast',
|
||||
},
|
||||
|
||||
// XXX for debug...
|
||||
G: {
|
||||
default: 'editStatusBarIndex!',
|
||||
shift: 'toggleStatusBarIndexMode!',
|
||||
|
||||
// XXX for debug...
|
||||
ctrl: function(){ $('.viewer').toggleClass('visible-gid') },
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user