[SSE] Fix spell checking settings
This commit is contained in:
parent
b940aa67d7
commit
ce13b3e4a8
|
@ -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));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue