minibar: syntax editor integration bug fix

The minibar has the alternative "All" in the target language menu. This should
not be included when transfering to the syntax editor.
This commit is contained in:
hallgren
2013-04-17 08:49:31 +00:00
parent 5e15ba20f5
commit c1390db368

View File

@@ -85,12 +85,14 @@ Minibar.prototype.integrate_syntax_editor=function() {
e.style.display="none" e.style.display="none"
minibar.options.abstract_action=function(tree) { minibar.options.abstract_action=function(tree) {
function not_all(s) { return s!="All" }
var languages=filter(not_all,minibar.translations.toLangs)
var editor_options = { var editor_options = {
target: editor_target, target: editor_target,
show_startcat_menu: minibar.input.options.startcat_menu, show_startcat_menu: minibar.input.options.startcat_menu,
initial: { grammar: minibar.grammar_menu.value, // hmm initial: { grammar: minibar.grammar_menu.value, // hmm
startcat: minibar.input.startcat_menu.value, // hmm startcat: minibar.input.startcat_menu.value, // hmm
languages: minibar.translations.toLangs, // hmm languages: languages,
abstr: tree abstr: tree
}, },
lin_action: function(new_input,langFrom) { lin_action: function(new_input,langFrom) {