summaryrefslogtreecommitdiffstats
path: root/html.lua
diff options
context:
space:
mode:
Diffstat (limited to 'html.lua')
-rw-r--r--html.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.lua b/html.lua
index fc34f17..4839458 100644
--- a/html.lua
+++ b/html.lua
@@ -89,11 +89,11 @@ local generic_input = function ( field_type, v )
return nil
end
- local str = string.format ( '<input class="%s" type="%s" ', html_escape(field_type), html_escape(field_type) )
+ local str = string.format ( '<input class="%s %s" type="%s" ', html_escape(v.class), html_escape(field_type), html_escape(field_type) )
for i,k in ipairs ( {
"name", "size", "checked", "maxlength",
- "value", "length", "class", "id", "src",
+ "value", "length", "id", "src",
"align", "alt", "contenteditable", "readonly",
"tabindex", "accesskey", "onfocus", "onblur"
} ) do