mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 19:25:27 -07:00
Code simplification
This commit is contained in:
1 parent
96758752e6
commit
d711c7da09
1 file changed
+1
-2
@@ -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