From 3c244ff27f015df6cfa918c9ba3e192f4d5b62ff Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 4 Apr 2013 14:04:31 +0000 Subject: minibar/syntax editor integration improvements Work in progress on preserving the start category and selected target languages when switching between the minibar and the syntax editor. --- src/www/syntax-editor/editor_menu.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/www/syntax-editor/editor_menu.js') diff --git a/src/www/syntax-editor/editor_menu.js b/src/www/syntax-editor/editor_menu.js index ea20710a4..33ce23ae4 100644 --- a/src/www/syntax-editor/editor_menu.js +++ b/src/www/syntax-editor/editor_menu.js @@ -77,12 +77,7 @@ function EditorMenu(editor,opts) { if (t.options.show_to_menu) { appendChildren(t.container, [text(" To: "), t.ui.to_toggle, t.ui.to_menu]); t.ui.to_menu.onchange = function(){ - var languages = new Array(); - for (i in t.ui.to_menu.options) { - var opt = t.ui.to_menu.options[i]; - if (opt.selected) - languages.push(opt.value); - } + var languages = multiMenuSelections(t.ui.to_menu) t.gm.change_languages(languages); } } -- cgit v1.2.3