diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 13:38:14 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 13:54:13 +0000 |
commit | 94a0a302dab75c3a901c736a47b93b614d5e83d1 (patch) | |
tree | 86d29052748f3b913e31f1b4274cd61348567bcf /logfiles-tail-html.lsp | |
parent | 92baed49c0b6780fbd55ebb2e0fb9b1ee13e220e (diff) | |
download | acf-alpine-baselayout-94a0a302dab75c3a901c736a47b93b614d5e83d1.tar.bz2 acf-alpine-baselayout-94a0a302dab75c3a901c736a47b93b614d5e83d1.tar.xz |
Change logfiles filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions
Diffstat (limited to 'logfiles-tail-html.lsp')
-rw-r--r-- | logfiles-tail-html.lsp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logfiles-tail-html.lsp b/logfiles-tail-html.lsp index c147f8a..8f2184f 100644 --- a/logfiles-tail-html.lsp +++ b/logfiles-tail-html.lsp @@ -18,7 +18,7 @@ '<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action) %>', {filename:'<% io.write(html.html_escape(form.value.filename.value)) if form.value.grep.value ~= "" then io.write("',grep:'"..html.html_escape(form.value.grep.value)) end %>', offset:currentoffset, viewtype:'json'}, function(data) { - if (currentoffset != data.value.filesize.value){ + if (currentoffset != data.value.size.value){ /* Before updating content, determine where we're scrolled to. If we're within 25 pixels of the bottom, we'll stick to the bottom. */ @@ -41,7 +41,7 @@ else content.scrollTop = content.scrollHeight; - currentoffset = data.value.filesize.value; + currentoffset = data.value.size.value; $(".left:contains('File size')").next().text(currentoffset); }; if (started) { @@ -69,7 +69,7 @@ <% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) htmlviewfunctions.displayitem(form.value.filename) -htmlviewfunctions.displayitem(form.value.filesize) +htmlviewfunctions.displayitem(form.value.size) if form.value.grep.value ~= "" then htmlviewfunctions.displayitem(form.value.grep) end |