mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
Code simplification
This commit is contained in:
@@ -68,8 +68,7 @@ function tr(cells) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function button(label,action) {
|
function button(label,action) {
|
||||||
var el=empty("input");
|
var el=empty("input","type","button");
|
||||||
el.setAttribute("type","button");
|
|
||||||
el.setAttribute("value",label);
|
el.setAttribute("value",label);
|
||||||
el.setAttribute("onclick",action);
|
el.setAttribute("onclick",action);
|
||||||
return el;
|
return el;
|
||||||
|
|||||||
Reference in New Issue
Block a user