forked from GitHub/gf-core
Code simplification
This commit is contained in:
@@ -68,8 +68,7 @@ function tr(cells) {
|
||||
}
|
||||
|
||||
function button(label,action) {
|
||||
var el=empty("input");
|
||||
el.setAttribute("type","button");
|
||||
var el=empty("input","type","button");
|
||||
el.setAttribute("value",label);
|
||||
el.setAttribute("onclick",action);
|
||||
return el;
|
||||
|
||||
Reference in New Issue
Block a user