summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2020-03-04 16:21:54 +0000
committerTed Trask <ttrask01@yahoo.com>2020-03-04 16:21:54 +0000
commitf695ebf5a2b5a89d08344e4d704fd1511dcce0e9 (patch)
treed97cbf71045e64b3acca7e1380650de8648d194b
parent569c929cd2a452f8d44b1f7e02e95f10e0d34dc8 (diff)
downloadacf-lib-f695ebf5a2b5a89d08344e4d704fd1511dcce0e9.tar.bz2
acf-lib-f695ebf5a2b5a89d08344e4d704fd1511dcce0e9.tar.xz
Allow configuration of the "accept" attribute value of "file" type forms
Applied patch from Marc-Andre Parent Ticket: https://gitlab.alpinelinux.org/acf/acf-lib/issues/1
-rw-r--r--html.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.lua b/html.lua
index 5bb46a6..5eda481 100644
--- a/html.lua
+++ b/html.lua
@@ -117,7 +117,8 @@ generic_input = function ( field_type, v )
"name", "size", "checked", "maxlength",
"value", "length", "id", "src",
"align", "alt", "contenteditable",
- "tabindex", "accesskey", "onfocus", "onblur", "title"
+ "tabindex", "accesskey", "onfocus", "onblur",
+ "title", "accept"
} ) do
str = str .. nv_pair ( k, v[k] )
end