From: Daniel Nilsson Date: Wed, 8 Jan 2025 19:11:28 +0000 (+0100) Subject: luci-app-keepalived: add missing variable declarations X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d7a4b1cea696c813b1958dec6841946a131d5b9c;p=project%2Fluci.git luci-app-keepalived: add missing variable declarations Signed-off-by: Daniel Nilsson --- diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js index 99d5af29f2..c92d48a3c1 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js @@ -34,7 +34,7 @@ return view.extend({ o.optional = false; o.rmempty = false; if (vrrp_scripts != '') { - for (i = 0; i < vrrp_scripts.length; i++) { + for (let i = 0; i < vrrp_scripts.length; i++) { o.value(vrrp_scripts[i]['name']); } } diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js index 1756f4b9fa..744a0f8aca 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js @@ -52,7 +52,7 @@ return view.extend({ real_servers = uci.sections('keepalived', 'real_server'); o = s.taboption('general', form.DynamicList, 'real_server', _('Real Server')); if (real_servers != '') { - for (i = 0; i < real_servers.length; i++) { + for (let i = 0; i < real_servers.length; i++) { o.value(real_servers[i]['name']); } }