Fix Bug 36319.
This commit is contained in:
parent
d598aed90d
commit
9fba2a6085
|
@ -372,7 +372,10 @@ define([
|
||||||
$parent.find('#status-label-lang').text(info.title);
|
$parent.find('#status-label-lang').text(info.title);
|
||||||
|
|
||||||
var index = $parent.find('ul li a:contains("'+info.title+'")').parent().index();
|
var index = $parent.find('ul li a:contains("'+info.title+'")').parent().index();
|
||||||
index < 0 ? this.langMenu.saved = info.title :
|
if (index < 0) {
|
||||||
|
this.langMenu.saved = info.title;
|
||||||
|
this.langMenu.clearAll();
|
||||||
|
} else
|
||||||
this.langMenu.items[index-1].setChecked(true);
|
this.langMenu.items[index-1].setChecked(true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -360,7 +360,10 @@ define([
|
||||||
$parent.find('#status-label-lang').text(info.title);
|
$parent.find('#status-label-lang').text(info.title);
|
||||||
|
|
||||||
var index = $parent.find('ul li a:contains("'+info.title+'")').parent().index();
|
var index = $parent.find('ul li a:contains("'+info.title+'")').parent().index();
|
||||||
index < 0 ? this.langMenu.saved = info.title :
|
if (index < 0) {
|
||||||
|
this.langMenu.saved = info.title;
|
||||||
|
this.langMenu.clearAll();
|
||||||
|
} else
|
||||||
this.langMenu.items[index-1].setChecked(true);
|
this.langMenu.items[index-1].setChecked(true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue