Code simplification

This commit is contained in:
hallgren
2010-04-15 15:41:30 +00:00
parent 96758752e6
commit d711c7da09

View File

@@ -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;