summaryrefslogtreecommitdiffstats
path: root/tinydns-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-06-24 15:25:39 +0000
committerTed Trask <ttrask01@yahoo.com>2008-06-24 15:25:39 +0000
commite5b81fd75226b70136264addc95e30cecffce444 (patch)
treecc724394d5202125af7340a256fd5f201af6f6e3 /tinydns-controller.lua
parentbc4c53f27f100f3f0280d4d8d5c2d02e4bc3cfd0 (diff)
downloadacf-tinydns-e5b81fd75226b70136264addc95e30cecffce444.tar.bz2
acf-tinydns-e5b81fd75226b70136264addc95e30cecffce444.tar.xz
Updated tinydns as follows: Renames status to view and basicstatus to status. Added ability to view individual config file / domain. Added link from view to edit actual line. Modified view.
Updated jQuery to latest 1.2.6 git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1253 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-controller.lua')
-rw-r--r--tinydns-controller.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/tinydns-controller.lua b/tinydns-controller.lua
index b0f4272..c97bca2 100644
--- a/tinydns-controller.lua
+++ b/tinydns-controller.lua
@@ -1,4 +1,5 @@
module(..., package.seeall)
+require("validator")
-- ################################################################################
-- LOCAL FUNCTIONS
@@ -8,12 +9,12 @@ module(..., package.seeall)
default_action = "status"
-function basicstatus(self)
+function status(self)
return self.model.getstatus(self)
end
-function status(self)
- return self.model.getconfigobjects(self)
+function view(self)
+ return self.model.getconfigobjects(self.clientdata.filename)
end
function startstop(self)
@@ -107,6 +108,8 @@ function edit(self)
config = self.model.get_filedetails(self.clientdata.filename)
config.descr = "Saved file"
end
+ elseif validator.is_integer(self.clientdata.linenumber) then
+ config.value.filecontent.linenumber = self.clientdata.linenumber
end
config.type = "form"