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@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
Andras Timar 2018-01-09 10:45:53 +01:00
parent f9bf3f61ea
commit 78a2990f96

View file

@ -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');
}