From 4c799d070810130bc97e245129dba010d6995482 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 14 Dec 2016 02:22:52 +0300 Subject: [PATCH] tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/css/layout.less | 2 +- ui (gen4)/features/ui-status.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/css/layout.less b/ui (gen4)/css/layout.less index 7950d74e..e7547c07 100755 --- a/ui (gen4)/css/layout.less +++ b/ui (gen4)/css/layout.less @@ -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: "/"; diff --git a/ui (gen4)/features/ui-status.js b/ui (gen4)/features/ui-status.js index 96b02cfe..af21d628 100755 --- a/ui (gen4)/features/ui-status.js +++ b/ui (gen4)/features/ui-status.js @@ -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 || '')