mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-28 14:02:50 -06:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user