diff options
| author | hallgren <hallgren@chalmers.se> | 2016-05-16 14:43:51 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2016-05-16 14:43:51 +0000 |
| commit | 5497f88b1535d41344f270a1741a333c60134af4 (patch) | |
| tree | 7db3abb513fb7f55ce9d54e961dcbe1a90cbd4f0 /src/www/js | |
| parent | 64058500575039a62316c26c51a28ecd939fb748 (diff) | |
Wide Coverage Translation Demo: a couple of small fixes
Add missing initalization after a new application grammar has been selected.
Add an "X" close button in the upper left corner of the grammar selection popup.
Diffstat (limited to 'src/www/js')
| -rw-r--r-- | src/www/js/wc.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/www/js/wc.js b/src/www/js/wc.js index 2b7f6434d..9479fc802 100644 --- a/src/www/js/wc.js +++ b/src/www/js/wc.js @@ -461,6 +461,7 @@ wc.select_grammars=function() { for(var i=0;i<glist.length;i++) if(glist[i].cb.checked) gs.push(glist[i].grammar) wc.selected_cnls=gs + wc.init_cnls() wc.local.put("cnls",wc.selected_cnls) } function cancel() { @@ -497,7 +498,7 @@ wc.select_grammars=function() { } clear(wc.grammarbox) - wc.grammarbox.appendChild(wrap("h2",text("Select which domain-specific grammars to use"))) + wc.grammarbox.appendChild(wrap("h2",[button("X",cancel),text("Select which domain-specific grammars to use")])) wc.grammarbox.appendChild(text("These grammars are tried before the wide-coverage grammar. They can give higher quality translations within their respective domains.")) var list=empty("dl") wc.grammarbox.appendChild(list) |
