git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
b5b66e9
)
luci-base: ui: fix null access in ui.Table.update()
author
Jo-Philipp Wich
<redacted>
Sun, 27 Feb 2022 19:33:02 +0000
(20:33 +0100)
committer
Jo-Philipp Wich
<redacted>
Sun, 27 Feb 2022 19:33:02 +0000
(20:33 +0100)
Fixes: #5702
Fixes: e0e6989a4a ("luci-base: introduce new LuCI.ui.Table class")
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-base/htdocs/luci-static/resources/ui.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/ui.js
b/modules/luci-base/htdocs/luci-static/resources/ui.js
index f915afdc3ad81d44a82d34c9f86c71225a326404..5abd3b388d157c880d0fcef9b5347c7730cbf5cb 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/ui.js
@@
-3256,7
+3256,7
@@
var UITable = baseclass.extend(/** @lends LuCI.ui.table.prototype */ {
}
while (rows[++n])
- t
arget
.removeChild(rows[n]);
+ t
his.node
.removeChild(rows[n]);
if (placeholder && this.node.firstElementChild === this.node.lastElementChild) {
var trow = this.node.appendChild(E('tr', { 'class': 'tr placeholder' })),
git clone https://git.99rst.org/PROJECT