1
0
forked from GitHub/gf-core

gfse: example-based: some usability improvements

Instead of showing nothing, show disabled buttons and some expanatory text to
provide guidance for users getting started with example-based grammar writing.
This commit is contained in:
hallgren
2011-11-21 15:24:29 +00:00
parent a3e813914c
commit 6bb1db51e7
4 changed files with 30 additions and 15 deletions

View File

@@ -31,10 +31,10 @@ function upload(g) {
var form=node("form",{method:"post",action:"/cloud"},
[hidden("dir",dir),hidden("command","make"),
hidden(g.basename+".gf",show_abstract(g))])
var files = [g.basename+".gf"]
//var files = [g.basename+".gf"]
for(var i in g.concretes) {
var cname=g.basename+g.concretes[i].langcode+".gf";
files.push(cname);
//files.push(cname);
form.appendChild(hidden(cname,
show_concrete(g.basename)(g.concretes[i])));
}