minibar/syntax editor integration fixes

When starting from the minibar, the selected set of target languages is now
preserved when switching back and forth.
This commit is contained in:
hallgren
2013-04-12 14:30:27 +00:00
parent 965adf74d6
commit 95e68117a9
3 changed files with 4 additions and 3 deletions

View File

@@ -193,7 +193,7 @@ EditorMenu.prototype.update_language_menu=function(menu,grammar) {
if(!hasPrefix(ln,"Disamb")) {
var lp=langpart(ln,grammar.name);
var opt=option(lp,ln);
if (elem(lp, t.gm.options.initial.languages)) {
if (elem(ln, t.gm.languages)) {
opt.selected=true;
}
menu.appendChild(opt);