Fix Bug 42147

This commit is contained in:
Julia Radzhabova 2019-07-22 11:52:16 +03:00
parent 48a92d5fa7
commit 5149515f13
2 changed files with 10 additions and 9 deletions

View file

@ -364,12 +364,13 @@ define([
this.langMenu.prevTip = info.value;
var index = $parent.find('ul li a:contains("'+info.displayValue+'")').parent().index();
if (index < 0) {
var lang = this.langMenu.items.find(function(item){ return item.caption == info.displayValue; });
if (lang)
lang.setChecked(true);
else {
this.langMenu.saved = info.displayValue;
this.langMenu.clearAll();
} else
this.langMenu.items[index].setChecked(true);
}
}
},

View file

@ -351,13 +351,13 @@ define([
$parent.find('#status-label-lang').text(info.displayValue);
this.langMenu.prevTip = info.value;
var index = $parent.find('ul li a:contains("'+info.displayValue+'")').parent().index();
if (index < 0) {
var lang = this.langMenu.items.find(function(item){ return item.caption == info.displayValue; });
if (lang)
lang.setChecked(true);
else {
this.langMenu.saved = info.displayValue;
this.langMenu.clearAll();
} else
this.langMenu.items[index].setChecked(true);
}
}
},