From eb941d6eac5fe17b338c5d3bc6ecda19444c48bd Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 12 Apr 2013 14:30:27 +0000 Subject: minibar/syntax editor integration fixes When starting from the minibar, the selected set of target languages is now preserved when switching back and forth. --- src/www/syntax-editor/editor_menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/www/syntax-editor') diff --git a/src/www/syntax-editor/editor_menu.js b/src/www/syntax-editor/editor_menu.js index 33ce23ae4..6076db935 100644 --- a/src/www/syntax-editor/editor_menu.js +++ b/src/www/syntax-editor/editor_menu.js @@ -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); -- cgit v1.2.3