summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-15 08:13:31 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-15 08:13:31 +0200
commit7d9ab8d4a741cbc97e9553982e9e352b21ddf5f3 (patch)
tree7a46565a1ca34663fc983dcacff8a6ad15ffc30b /modules/luci-base/htdocs
parentb178a33018dbf791165b8d153aa1a9613aa653b7 (diff)
luci-base: fix off-by-one in cbi_update_table()
Fixes: #5189 Fixes: f919635310 ("luci-base: batch DOM updates to prevent slowdown") Ref: https://github.com/openwrt/luci/commit/f919635310286b3b905aedb716d707da1ea2c811#commitcomment-53495580 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/cbi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index 2fc2f09632..513256e4c9 100644
--- a/modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js
@@ -773,7 +773,7 @@ function cbi_update_table(table, data, placeholder) {
trows[n] = trow;
});
- for (var i = 1; i < n; i++) {
+ for (var i = 1; i <= n; i++) {
if (rows[i])
target.replaceChild(trows[i], rows[i]);
else