summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-01-19 15:13:03 +0000
committerTed Trask <ttrask01@yahoo.com>2011-01-19 15:13:03 +0000
commitdee3dbb28e6dd153ffdd0e840ffde801b6949fef (patch)
tree35fc71d952ce342e7097dff82b3e080290ec4c21
parenta90bd0cfb61352ea40a8d89abda8a367c1982b3c (diff)
downloadacf-lib-dee3dbb28e6dd153ffdd0e840ffde801b6949fef.tar.bz2
acf-lib-dee3dbb28e6dd153ffdd0e840ffde801b6949fef.tar.xz
Fixed bug where classes for input fields were put in a second class attribute
-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