Skip to content

Commit

Permalink
Bug 69581 - [Watermark] When expanding the list of the text backgroun…
Browse files Browse the repository at this point in the history
…d language, the language selected by default is not the same as before expanding it. (good case)
  • Loading branch information
IrinaMalysheva committed Aug 12, 2024
1 parent e6542ca commit 390900f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/documenteditor/main/app/view/WatermarkSettingsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ define([
this.cmbText.setData(data);
this.cmbText.setValue(data[0].value);
}
return item ? item.get('displayValue') : null;
return item ? item.get('value') : null;
},

onImageSelect: function(menu, item) {
Expand Down Expand Up @@ -526,7 +526,11 @@ define([
if (val) {
var lang = Common.util.LanguageInfo.getLocalLanguageName(val.get_Lang());
this.lang = {value: lang[0], displayValue: lang[1]};
this.cmbLang.setValue(lang[1]);
var langKey = lang[0];
var cmbLangLi = this.cmbLang.store.findWhere({value: langKey});
if (!cmbLangLi)
langKey = langKey.split(/[\-\_]/)[0];
this.cmbLang.setValue(langKey, lang[1]);
this.loadWMText(lang[0]);

var font = val.get_FontFamily().get_Name();
Expand Down

0 comments on commit 390900f

Please sign in to comment.