[Libreoffice-commits] online.git: loleaflet/dist
Henry Castro
hcastro at collabora.com
Sun Oct 1 14:56:20 UTC 2017
loleaflet/dist/toolbar/toolbar.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit e02ca0603a220fbd7755f42960a5c4976848f5c4
Author: Henry Castro <hcastro at collabora.com>
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;">  </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) {
More information about the Libreoffice-commits
mailing list