fix: remove name attribute from log textarea for prevent exceeds the http post maximum allow size

This commit is contained in:
SunBK201 2025-11-24 14:12:43 +08:00
parent 1f163b8632
commit 973a33432a

View File

@ -10,7 +10,6 @@ local Value = cbi.Value
local ListValue = cbi.ListValue
local DummyValue = cbi.DummyValue
local TextValue = cbi.TextValue
local Button = cbi.Button
-- Status Section Fields
function M.add_status_fields(section)
@ -127,6 +126,7 @@ function M.add_log_fields(section)
luci.http.write([[
var textarea = document.getElementById('cbid.ua3f.main.log');
if (textarea) {
textarea.removeAttribute('name');
textarea.scrollTop = textarea.scrollHeight;
}
]])