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_online.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/www/syntax-editor/editor_online.js') diff --git a/src/www/syntax-editor/editor_online.js b/src/www/syntax-editor/editor_online.js index 913bec05a..dc2325737 100644 --- a/src/www/syntax-editor/editor_online.js +++ b/src/www/syntax-editor/editor_online.js @@ -35,8 +35,11 @@ if(window.Minibar) // Minibar loaded? initial_grammar: editor.menu.ui.grammar_menu.value, // hmm initial: { from: langFrom, - input: s.split(" ") // is it that easy? + input: s.split(" "), // is it that easy? + startcat: editor.menu.ui.startcat_menu.value // hmm }, + initial_toLangs: multiMenuSelections(editor.menu.ui.to_menu), // hmm + // get us back to the editor! abstract_action: function(tree) { var opts = { -- cgit v1.2.3