loleaflet/dist/toolbar/toolbar.js |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit e02ca0603a220fbd7755f42960a5c4976848f5c4
Author: Henry Castro <[email protected]>
Date:   Sun Oct 1 10:53:36 2017 -0400

    loleaflet: add language status bar item
    
    Change-Id: I6615373a27b1a32561f3c5fba2f9c7765dbf9bef

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index a2c5065e..b66b76db 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -676,6 +676,9 @@ $(function () {
                        {type: 'button',  id: 'cancelsearch', img: 'cancel', 
hint: _('Cancel the search'), hidden: true},
                        {type: 'html',  id: 'left'},
                        {type: 'html',  id: 'right'},
+                       {type: 'html',  id: 'LanguageStatus',
+                        html: '<div id="LanguageStatus" class="loleaflet-font" 
title="'+_('Text Language')+ '" style="padding: 5px 
5px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp</div>' },
+                       {type: 'break', id: 'languagestatusbreak'},
                        {type: 'html',    id: 'modifiedstatuslabel', html: 
'<div id="modifiedstatuslabel" class="loleaflet-font"></div>'},
                        {type: 'break', id: 'modifiedstatuslabelbreak'},
                        {type: 'drop', id: 'userlist', text: _('No users'), 
html: '<div id="userlist_container"><table 
id="userlist_table"><tbody></tbody></table>' +
@@ -1209,6 +1212,9 @@ map.on('commandstatechanged', function (e) {
                        L.DomUtil.setStyle(div, 'background', color);
                }
        }
+       else if (commandName === '.uno:LanguageStatus') {
+               $('#LanguageStatus').html(state);
+       }
        else if (commandName === '.uno:ModifiedStatus') {
                var modifiedStatus = e.state === 'true';
                if (modifiedStatus) {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to