From 0c3cebbfcf440e2810447ccf625ea17eb165f9bd Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 12 Sep 2014 03:24:10 +0000 Subject: Modify htmlviewfunctions to display readonly select as text since select does not support readonly option --- lib/htmlviewfunctions.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/htmlviewfunctions.lua') diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index 8216780..256d3a4 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -220,6 +220,8 @@ function mymodule.displayformitem(myitem, name, viewtype, header_level, group) myitem.value = table.concat(myitem.value, "\n") io.write(html.form.longtext(myitem)) myitem.value = tempval + elseif myitem.type == "select" and myitem.readonly then + io.write((html.form.text(myitem) or "")) else io.write((html.form[myitem.type](myitem) or "")) end -- cgit v1.2.3