From 3cb42e2c39d20d4dc7d0c8b294b883c39e837963 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 22 Feb 2012 13:49:36 +0000 Subject: Changed forms to always use 'submit' as name of submit button, plus allow multiple submit buttons --- lib/htmlviewfunctions.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/htmlviewfunctions.lua') diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index ef59485..08db605 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -224,7 +224,16 @@ end function displayformend(myform) if not myform then return end - io.write('
\n') + local option = myform.submit or myform.option + io.write('
') + if type(option) == "table" then + for i,v in ipairs(option) do + io.write('\n') + end + else + io.write('\n') + end + io.write('
\n') io.write('') io.write('\n') end -- cgit v1.2.3