luci-base: correctness fixes
authorPaul Donald <redacted>
Tue, 26 May 2026 14:33:06 +0000 (17:33 +0300)
committerPaul Donald <redacted>
Wed, 27 May 2026 12:49:44 +0000 (15:49 +0300)
commita818ac89bb0e376b7ac4c9f1a8a35f657bbd64c9
tree7226e70222bb231c74a05a341b6937d8eda8432f
parent4a63b98525ea624ca022be29f7f9ab9feb64f4ec
luci-base: correctness fixes

validation:

use correct argument position for apply

network:

spec.need_tag -> port.need_tag agrees with old lua compat

widgets:

rv.length is undefined, use firstChild

form:

Follow-up to 315dbfc7498e2f43afb0119b992915e8f311bc37
checkDepends recursion fix and implement cache lookup

uci:

improve timeout and Promise handling

ui:

follow-up to 92381c3ca285c2303a59c74509fb4d6a422fece3
renderListing sort: put directories first
getActiveTabId: check isNaN for tab state
getScrollParent: fix evaluation logic
fadeOutNotification: implement immediate timeout
openDropdown: accelerate draw via getBoundingClientRect

form:
ensure FlagValue parse always resolves

fs:
parse all 'expect' keys in RpcReply

luci:

Use the same source of truth in both the check and the dispatch
for flushRequestQueue

string check for dom string additions

Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/firewall.js
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-base/htdocs/luci-static/resources/fs.js
modules/luci-base/htdocs/luci-static/resources/luci.js
modules/luci-base/htdocs/luci-static/resources/network.js
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
modules/luci-base/htdocs/luci-static/resources/uci.js
modules/luci-base/htdocs/luci-static/resources/ui.js
modules/luci-base/htdocs/luci-static/resources/validation.js
git clone https://git.99rst.org/PROJECT