diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-09-17 19:40:31 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-09-17 19:40:31 +0000 |
commit | fb354ee8afb21d5f09721a8e7b9df7169e7183fd (patch) | |
tree | e6c19b4a3858f363bf9f5664e6c33fe1244b12bd /logfiles-tail-html.lsp | |
parent | 54d9a100593d103aab724327a7763c24dbf0eaff (diff) | |
download | acf-alpine-baselayout-fb354ee8afb21d5f09721a8e7b9df7169e7183fd.tar.bz2 acf-alpine-baselayout-fb354ee8afb21d5f09721a8e7b9df7169e7183fd.tar.xz |
Modified logfiles to add grep capability.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1472 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'logfiles-tail-html.lsp')
-rw-r--r-- | logfiles-tail-html.lsp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/logfiles-tail-html.lsp b/logfiles-tail-html.lsp index b4ef807..6bfe26d 100644 --- a/logfiles-tail-html.lsp +++ b/logfiles-tail-html.lsp @@ -9,7 +9,7 @@ $.ajaxSetup({cache:false}); $.getJSON( '<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>', - {name:'<%= form.value.filename.value %>', offset:currentoffset}, + {name:'<% io.write(form.value.filename.value) if form.value.grep.value ~= "" then io.write("',grep:'"..form.value.grep.value) end %>', offset:currentoffset}, function(data) { data.value.filecontent.value = data.value.filecontent.value.split("\n").join("<br>\n"); $("#filecontent").append(data.value.filecontent.value).scrollTop(999999999); @@ -34,6 +34,9 @@ <% displayitem(form.value.filename) displayitem(form.value.filesize) +if form.value.grep.value ~= "" then + displayitem(form.value.grep) +end %> </DL> <textarea id="filecontent"> |