From 78a2990f967ecbad2189135f622b2b874731055d Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Tue, 9 Jan 2018 10:45:53 +0100 Subject: [PATCH] Put checkmark if spell checking language 'None' is selected Change-Id: Iccbcbce2590b70c115199fcdb57bd5174d9c3a80 Reviewed-on: https://gerrit.libreoffice.org/47638 Reviewed-by: Andras Timar Tested-by: Andras Timar --- loleaflet/src/control/Control.Menubar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index 8c13ba45d..907120da9 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'); }