summaryrefslogtreecommitdiffstats
path: root/logfiles-tail-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'logfiles-tail-html.lsp')
-rw-r--r--logfiles-tail-html.lsp5
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">