[SSE] Fix spell checking settings

This commit is contained in:
Julia Svinareva 2019-11-29 14:56:06 +03:00
parent b940aa67d7
commit ce13b3e4a8
2 changed files with 9 additions and 5 deletions

View file

@ -2056,8 +2056,10 @@ define([
this.api.asc_ignoreUppercase(value);
value = Common.localStorage.getBool("sse-spellcheck-ignore-numbers-words");
this.api.asc_ignoreNumbers(value);
value = parseInt(Common.localStorage.getItem("sse-spellcheck-locale"));
this.api.asc_setDefaultLanguage(value);
value = Common.localStorage.getItem("sse-spellcheck-locale");
if (value) {
this.api.asc_setDefaultLanguage(parseInt(value));
}
}
},

View file

@ -1087,9 +1087,11 @@ define([
Common.localStorage.setBool("sse-spellcheck-ignore-numbers-words", value);
Common.Utils.InternalSettings.set("sse-spellcheck-ignore-numbers-words", value);
value = this.cmbDictionaryLanguage.getValue();
Common.localStorage.setItem("sse-spellcheck-locale", value);
Common.Utils.InternalSettings.set("sse-spellcheck-locale", value);
if (!this.cmbDictionaryLanguage.isDisabled()) {
value = this.cmbDictionaryLanguage.getValue();
Common.localStorage.setItem("sse-spellcheck-locale", value);
Common.Utils.InternalSettings.set("sse-spellcheck-locale", value);
}
Common.localStorage.save();
if (this.menu) {