[Libreoffice-commits] online.git: loleaflet/src
Andras Timar
andras.timar at collabora.com
Tue Jan 9 09:46:54 UTC 2018
loleaflet/src/control/Control.Menubar.js | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 78a2990f967ecbad2189135f622b2b874731055d
Author: Andras Timar <andras.timar at collabora.com>
Date: Tue Jan 9 10:45:53 2018 +0100
Put checkmark if spell checking language 'None' is selected
Change-Id: Iccbcbce2590b70c115199fcdb57bd5174d9c3a80
Reviewed-on: https://gerrit.libreoffice.org/47638
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 8c13ba45..907120da 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -538,6 +538,8 @@ L.Control.Menubar = L.Control.extend({
var data = decodeURIComponent($(aItem).data('uno'));
if (data.indexOf(lang) !== -1) {
$(aItem).addClass('lo-menu-item-checked');
+ } else if (data.indexOf('LANGUAGE_NONE') !== -1 && lang === '[None]') {
+ $(aItem).addClass('lo-menu-item-checked');
} else {
$(aItem).removeClass('lo-menu-item-checked');
}
More information about the Libreoffice-commits
mailing list