loleaflet/src/control/Control.Menubar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 80f92494338708cb75fc5f429b37cfa4970fa951 Author: Henry Castro <hcas...@collabora.com> Date: Thu Nov 16 22:22:40 2017 -0400 loleaflet: fix when the language menu item is selected The languages are translated and ordered. Change-Id: Id1fd8eec622f3b3ecb5e8da73a386a201b6cee9f diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index 7c05a055..19464469 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -494,8 +494,8 @@ L.Control.Menubar = L.Control.extend({ } if (unoCommand.indexOf('.uno:LanguageStatus') !== -1) { var lang = map['stateChangeHandler'].getItemValue('.uno:LanguageStatus'); - var label = $(aItem).html(); - if (label === lang) { + var data = decodeURIComponent($(aItem).data('uno')); + if (data.indexOf(lang) !== -1) { $(aItem).addClass('lo-menu-item-checked'); } else { $(aItem).removeClass('lo-menu-item-checked'); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits