[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/src
Henry Castro
hcastro at collabora.com
Thu Oct 26 19:15:05 UTC 2017
loleaflet/src/control/Control.Menubar.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 703b1a147197551ae7def10968ab84dc208e2bc7
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
Reviewed-on: https://gerrit.libreoffice.org/43789
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 6e9de55b..515e9bc0 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -364,7 +364,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