summaryrefslogtreecommitdiffstats
path: root/lib/htmlviewfunctions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/htmlviewfunctions.lua')
-rw-r--r--lib/htmlviewfunctions.lua2
1 files changed, 2 insertions, 0 deletions
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