From 9a0afb466ef66b0d27fd12652c3fe198d4fcfe6d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 30 Jun 2008 17:19:43 +0000 Subject: Added javascript to interfaces update/create pages. Minor changes to tinydns and viewfunctions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1264 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/viewfunctions.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua index e927e2b..27320a6 100644 --- a/lib/viewfunctions.lua +++ b/lib/viewfunctions.lua @@ -105,7 +105,7 @@ function displayformitem(myitem, name, viewtype) io.write("" .. myitem.label .. "\n") io.write("
") @@ -140,15 +140,15 @@ function displayformitem(myitem, name, viewtype) else io.write((html.form[myitem.type](myitem) or "") .. "\n") end - if myitem.descr then io.write("

" .. string.gsub(myitem.descr, "\n", "
") .. "

\n") end - if myitem.errtxt then io.write("

" .. string.gsub(myitem.errtxt, "\n", "
") .. "

\n") end + if myitem.descr then io.write('

' .. string.gsub(myitem.descr, "\n", "
") .. "

\n") end + if myitem.errtxt then io.write('

' .. string.gsub(myitem.errtxt, "\n", "
") .. "

\n") end io.write("
\n") end function displayform(myform, order) if not myform then return end - if myform.descr then io.write("

" .. string.gsub(myform.descr, "\n", "
") .. "

\n") end - if myform.errtxt then io.write("

" .. string.gsub(myform.errtxt, "\n", "
") .. "

\n") end + if myform.descr then io.write('

' .. string.gsub(myform.descr, "\n", "
") .. "

\n") end + if myform.errtxt then io.write('

' .. string.gsub(myform.errtxt, "\n", "
") .. "

\n") end io.write('
\n') io.write('
\n') local reverseorder= {} -- cgit v1.2.3