1
0
forked from GitHub/gf-core

minibar: show parse trees without or with function names

Click once to show the parse tree without function names. Click again to
add function names.
This commit is contained in:
hallgren
2013-03-26 14:24:22 +00:00
parent 45b632d530
commit 26d846a23e
2 changed files with 14 additions and 7 deletions

View File

@@ -24,9 +24,8 @@ function update_language_menu(menu,grammar) {
}
function button_img(url,action) {
var i=img(url);
i.setAttribute("class","button");
i.setAttribute("onclick",action);
var i=node("img",{"class":"button","src":url});
i.onclick=action;
return i;
}