summaryrefslogtreecommitdiff
path: root/src/www/syntax-editor/editor_online.js
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2013-04-04 14:04:31 +0000
committerhallgren <hallgren@chalmers.se>2013-04-04 14:04:31 +0000
commit3c244ff27f015df6cfa918c9ba3e192f4d5b62ff (patch)
tree6dcc6016bd180b863cd5136d0f9ea1646b566799 /src/www/syntax-editor/editor_online.js
parenta22a419bc7ea0dc45f9965e6ffebf42417212d52 (diff)
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.
Diffstat (limited to 'src/www/syntax-editor/editor_online.js')
-rw-r--r--src/www/syntax-editor/editor_online.js5
1 files changed, 4 insertions, 1 deletions
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 = {