[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Tue Oct 24 19:04:08 UTC 2017
loleaflet/src/control/Control.Menubar.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2965cebe6c85488d68d42d5727d9cd6bd359c539
Author: Henry Castro <hcastro at collabora.com>
Date: Tue Oct 24 14:57:57 2017 -0400
loleaflet: check if languages are an array type
Change-Id: I580ea3c6fe70d1aa3204d2c743fb0a978dda185e
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index ad5bec54..91ea05a7 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -362,7 +362,7 @@ L.Control.Menubar = L.Control.extend({
},
_onInitMenu: function (e) {
- if (e.commandName === '.uno:LanguageStatus') {
+ if (e.commandName === '.uno:LanguageStatus' && L.Util.isArray(e.commandValues)) {
var resetLang = _('Reset to Default Language');
$menuSelection = $('#menu-noneselection').parent();
$menuParagraph = $('#menu-noneparagraph').parent();
More information about the Libreoffice-commits
mailing list