Fix Bug 42147
This commit is contained in:
parent
48a92d5fa7
commit
5149515f13
|
@ -364,12 +364,13 @@ define([
|
||||||
|
|
||||||
this.langMenu.prevTip = info.value;
|
this.langMenu.prevTip = info.value;
|
||||||
|
|
||||||
var index = $parent.find('ul li a:contains("'+info.displayValue+'")').parent().index();
|
var lang = this.langMenu.items.find(function(item){ return item.caption == info.displayValue; });
|
||||||
if (index < 0) {
|
if (lang)
|
||||||
|
lang.setChecked(true);
|
||||||
|
else {
|
||||||
this.langMenu.saved = info.displayValue;
|
this.langMenu.saved = info.displayValue;
|
||||||
this.langMenu.clearAll();
|
this.langMenu.clearAll();
|
||||||
} else
|
}
|
||||||
this.langMenu.items[index].setChecked(true);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -351,13 +351,13 @@ define([
|
||||||
$parent.find('#status-label-lang').text(info.displayValue);
|
$parent.find('#status-label-lang').text(info.displayValue);
|
||||||
|
|
||||||
this.langMenu.prevTip = info.value;
|
this.langMenu.prevTip = info.value;
|
||||||
|
var lang = this.langMenu.items.find(function(item){ return item.caption == info.displayValue; });
|
||||||
var index = $parent.find('ul li a:contains("'+info.displayValue+'")').parent().index();
|
if (lang)
|
||||||
if (index < 0) {
|
lang.setChecked(true);
|
||||||
|
else {
|
||||||
this.langMenu.saved = info.displayValue;
|
this.langMenu.saved = info.displayValue;
|
||||||
this.langMenu.clearAll();
|
this.langMenu.clearAll();
|
||||||
} else
|
}
|
||||||
this.langMenu.items[index].setChecked(true);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue