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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user