luci-app-jd-dailybonus: fix log display

This commit is contained in:
CN_SZTL 2020-07-19 11:54:21 +08:00
parent 3e0bc7d3ad
commit a6bb091998
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -2,14 +2,12 @@ local fs = require "nixio.fs"
local jd = "jd-dailybonus"
local conffile = "/www/JD_DailyBonus.htm"
f = SimpleForm("logview")
m = Map(jd)
-- [[ 基本设置 ]]--
s = SimpleForm("logview")
s.submit = false
s.reset = false
s = m:section(TypedSection, "global")
s.anonymous = true
t = s:option(TextValue, "1", nil)
-- [[ 日志显示 ]]--
t = s:field(TextValue, "1", nil)
t.rmempty = true
t.rows = 30
function t.cfgvalue()
@ -17,4 +15,4 @@ function t.cfgvalue()
end
t.readonly="readonly"
return m
return s