gfse: example-based: remove target language from the example language menu

This commit is contained in:
hallgren
2011-11-02 16:13:30 +00:00
parent 80605c0e7e
commit bed4395a3d
2 changed files with 3 additions and 3 deletions

View File

@@ -68,8 +68,8 @@ function exb_extra(g,ci) {
function exblangmenu() {
function opt(conc) { return option(conc.langcode,conc.langcode); }
// skip target language
var m =node("select",{},map(opt,g.concretes));
function skip_target(c) { return c.langcode!=conc.langcode; }
var m =node("select",{},map(opt,filter(skip_target,g.concretes)));
if(conc.example_lang) m.value=conc.example_lang;
m.onchange=function() { conc.example_lang=m.value; save_grammar(g); }
return m