mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
24408382a6
commit
62ca9e1d1d
@ -181,7 +181,17 @@ var StatusBarActions = actions.Actions({
|
||||
},
|
||||
ribbon: function(item, gid, img){
|
||||
var that = this
|
||||
var n = this.data ? this.data.getRibbonOrder(gid || this.current) : '-'
|
||||
|
||||
// get ribbon number...
|
||||
var n = (this.data && this.data.ribbon_order.length > 0) ?
|
||||
this.data.getRibbonOrder(gid || this.current)
|
||||
: '-'
|
||||
// flag the base ribbon...
|
||||
n += (this.data
|
||||
&& this.data.base
|
||||
&& this.data.getRibbon(gid) == this.base) ?
|
||||
'*'
|
||||
: ''
|
||||
|
||||
// make an element...
|
||||
if(typeof(item) == typeof('str')){
|
||||
@ -200,7 +210,7 @@ var StatusBarActions = actions.Actions({
|
||||
})
|
||||
}
|
||||
|
||||
item.text(n + ((this.data && this.data.getRibbon(gid) == this.base) ? '*' : ''))
|
||||
item.text(n)
|
||||
|
||||
return item
|
||||
},
|
||||
@ -450,6 +460,13 @@ var StatusBarActions = actions.Actions({
|
||||
this.ribbons.viewer.find('.global-info .index .position').focus().click()
|
||||
}
|
||||
}],
|
||||
editStatusBarRibbon: ['- Interface/',
|
||||
function(){
|
||||
this.toggleStatusBar('?') == 'none' && this.toggleStatusBar()
|
||||
|
||||
// XXX do this better...
|
||||
this.ribbons.viewer.find('.global-info .ribbon-number').focus().click()
|
||||
}],
|
||||
toggleStatusBarIndexMode: ['Interface/Status bar index mode',
|
||||
toggler.CSSClassToggler(
|
||||
function(){ return this.ribbons.viewer.find('.global-info .index') },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user