tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-12-14 02:22:52 +03:00
parent 3d697809f0
commit 4c799d0708
2 changed files with 8 additions and 4 deletions

View File

@ -1404,7 +1404,7 @@ stretching in width... */
}
.overlay-info .ribbon-count {
opacity: 0.3;
font-size: small;
//font-size: small;
}
.overlay-info .ribbon-count:not(:empty):before {
content: "/";

View File

@ -84,6 +84,8 @@ var StatusBarActions = actions.Actions({
'live-update-on-edit': false,
},
'status-bar-ribbon-count': true,
'status-bar-changes-text': '*',
},
@ -187,7 +189,9 @@ var StatusBarActions = actions.Actions({
var n = (this.data && this.data.ribbon_order.length > 0) ?
this.data.getRibbonOrder(gid || this.current)
: '-'
var t = this.data ? this.data.ribbon_order.length : null
var t = (this.config['status-bar-ribbon-count'] && this.data) ?
this.data.ribbon_order.length
: null
// make an element...
if(typeof(item) == typeof('str')){
@ -198,7 +202,7 @@ var StatusBarActions = actions.Actions({
.attr('info', 'Current ribbon (click to edit)')
.makeEditable()
.on('edit-done', function(_, text){
that.focusRibbon(text == '*' ? that.base : parseInt(text))
that.focusRibbon(text == '*' ? that.base : parseInt(text)-1)
})
.focus(function(){
$(this).selectText()
@ -213,7 +217,7 @@ var StatusBarActions = actions.Actions({
item
.find('.ribbon-number')
.html(n)
.html(n+1)
.end()
.find('.ribbon-count')
.html(t || '')