Fix Bug 36319.

This commit is contained in:
Julia Radzhabova 2017-11-13 12:14:34 +03:00
parent d598aed90d
commit 9fba2a6085
2 changed files with 9 additions and 3 deletions

View file

@ -372,8 +372,11 @@ define([
$parent.find('#status-label-lang').text(info.title);
var index = $parent.find('ul li a:contains("'+info.title+'")').parent().index();
index < 0 ? this.langMenu.saved = info.title :
this.langMenu.items[index-1].setChecked(true);
if (index < 0) {
this.langMenu.saved = info.title;
this.langMenu.clearAll();
} else
this.langMenu.items[index-1].setChecked(true);
}
},

View file

@ -360,7 +360,10 @@ define([
$parent.find('#status-label-lang').text(info.title);
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);
}
},