diff options
| author | hallgren <hallgren@chalmers.se> | 2011-11-02 16:13:30 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2011-11-02 16:13:30 +0000 |
| commit | 5856098f2f71dc443cf6412443d6b3efbcb8efb8 (patch) | |
| tree | dd1c1278d71540461878789f5faa5ce739e5a254 /src/www/gfse/example_based.js | |
| parent | 1d411cad87f8a2b6153b5672458953e0a670621b (diff) | |
gfse: example-based: remove target language from the example language menu
Diffstat (limited to 'src/www/gfse/example_based.js')
| -rw-r--r-- | src/www/gfse/example_based.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/www/gfse/example_based.js b/src/www/gfse/example_based.js index adb9fb7e6..1bbf17bd4 100644 --- a/src/www/gfse/example_based.js +++ b/src/www/gfse/example_based.js @@ -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 |
