commit
db9040247a
|
@ -893,6 +893,7 @@ define([
|
||||||
if (Common.UI.FeaturesManager.canChange('spellcheck') && this.mode.isEdit) {
|
if (Common.UI.FeaturesManager.canChange('spellcheck') && this.mode.isEdit) {
|
||||||
|
|
||||||
var arrLang = SSE.getController('Spellcheck').loadLanguages(),
|
var arrLang = SSE.getController('Spellcheck').loadLanguages(),
|
||||||
|
defaultShortName = "en-US",
|
||||||
allLangs = arrLang[0],
|
allLangs = arrLang[0],
|
||||||
langs = arrLang[1],
|
langs = arrLang[1],
|
||||||
change = arrLang[2];
|
change = arrLang[2];
|
||||||
|
@ -912,6 +913,8 @@ define([
|
||||||
item = this.cmbDictionaryLanguage.store.find(function (model) {
|
item = this.cmbDictionaryLanguage.store.find(function (model) {
|
||||||
return model.get('shortName').indexOf(value) == 0;
|
return model.get('shortName').indexOf(value) == 0;
|
||||||
});
|
});
|
||||||
|
if(!item)
|
||||||
|
item = this.cmbDictionaryLanguage.store.findWhere({shortName: defaultShortName})
|
||||||
}
|
}
|
||||||
this.cmbDictionaryLanguage.setValue(item ? item.get('value') : langs[0].value);
|
this.cmbDictionaryLanguage.setValue(item ? item.get('value') : langs[0].value);
|
||||||
value = this.cmbDictionaryLanguage.getValue();
|
value = this.cmbDictionaryLanguage.getValue();
|
||||||
|
|
Loading…
Reference in a new issue