summaryrefslogtreecommitdiffstats
path: root/logfiles-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-03 13:51:14 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-03 13:51:14 +0000
commiteb36e4c9737dee9dd3aaef56abcfcf6c407bd100 (patch)
treef823409966cb2c8152747236a312cbfe80c7e608 /logfiles-controller.lua
parent3f22a6dd4d2336bf0c3409c400faa9f5488f0e32 (diff)
downloadacf-alpine-baselayout-eb36e4c9737dee9dd3aaef56abcfcf6c407bd100.tar.bz2
acf-alpine-baselayout-eb36e4c9737dee9dd3aaef56abcfcf6c407bd100.tar.xz
Added javascript tail functionality to logfiles.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1441 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'logfiles-controller.lua')
-rw-r--r--logfiles-controller.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/logfiles-controller.lua b/logfiles-controller.lua
index dc22115..2af76ee 100644
--- a/logfiles-controller.lua
+++ b/logfiles-controller.lua
@@ -24,3 +24,10 @@ download = function (self)
return filecontent
end
+
+tail = function (self)
+ if self.clientdata.offset then
+ self.conf.viewtype = "ajax"
+ end
+ return self.model.tail(self.clientdata.name, self.clientdata.offset)
+end