mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
fix: remove name attribute from log textarea for prevent exceeds the http post maximum allow size
This commit is contained in:
parent
1f163b8632
commit
973a33432a
@ -10,7 +10,6 @@ local Value = cbi.Value
|
|||||||
local ListValue = cbi.ListValue
|
local ListValue = cbi.ListValue
|
||||||
local DummyValue = cbi.DummyValue
|
local DummyValue = cbi.DummyValue
|
||||||
local TextValue = cbi.TextValue
|
local TextValue = cbi.TextValue
|
||||||
local Button = cbi.Button
|
|
||||||
|
|
||||||
-- Status Section Fields
|
-- Status Section Fields
|
||||||
function M.add_status_fields(section)
|
function M.add_status_fields(section)
|
||||||
@ -127,6 +126,7 @@ function M.add_log_fields(section)
|
|||||||
luci.http.write([[
|
luci.http.write([[
|
||||||
var textarea = document.getElementById('cbid.ua3f.main.log');
|
var textarea = document.getElementById('cbid.ua3f.main.log');
|
||||||
if (textarea) {
|
if (textarea) {
|
||||||
|
textarea.removeAttribute('name');
|
||||||
textarea.scrollTop = textarea.scrollHeight;
|
textarea.scrollTop = textarea.scrollHeight;
|
||||||
}
|
}
|
||||||
]])
|
]])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user