diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-01-19 15:13:03 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-01-19 15:13:03 +0000 |
commit | dee3dbb28e6dd153ffdd0e840ffde801b6949fef (patch) | |
tree | 35fc71d952ce342e7097dff82b3e080290ec4c21 | |
parent | a90bd0cfb61352ea40a8d89abda8a367c1982b3c (diff) | |
download | acf-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.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |