From 63544eda8d5d0c398f21e46c5a6d2b9316126631 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 28 Feb 2014 20:24:12 +0000 Subject: Try using label tag for form inputs --- lib/htmlviewfunctions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index 00f8871..ff847cd 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -71,13 +71,14 @@ function mymodule.displayformitem(myitem, name, viewtype, header_level, group) if not myitem then return end if name then myitem.name = name end if group and group ~= "" then myitem.name = group.."."..myitem.name end + myitem.id = myitem.name if myitem.type ~= "hidden" and myitem.type ~= "group" then io.write("

" .. html.html_escape(myitem.label) .. "

") + io.write("'>") io.write("
") end if (viewtype == "viewonly") then -- cgit v1.2.3