diff options
author | Stefan Weil <sw@weilnetz.de> | 2018-10-28 22:38:20 +0100 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2018-10-28 22:38:20 +0100 |
commit | ec63339ae5258509cf7a8829d4dd79519948c256 (patch) | |
tree | 1ae6ab68f92f6c483b0e466b72e9b2ce9a702037 /applications/luci-app-ddns/luasrc/view | |
parent | 35b543e270428357d22ede5ceff39653b3371a1b (diff) |
Add missing variable declarations in JavaScript code
This fixes errors reported by LGTM.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'applications/luci-app-ddns/luasrc/view')
-rw-r--r-- | applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm | 4 | ||||
-rw-r--r-- | applications/luci-app-ddns/luasrc/view/ddns/system_status.htm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm b/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm index b409ed0728..f3f45e0d04 100644 --- a/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm +++ b/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm @@ -14,7 +14,7 @@ // called by XHR.poll and onclick_startstop function _data2elements(data) { // Service sections - for( i = 1; i < data.length; i++ ) + for( var i = 1; i < data.length; i++ ) { var section = data[i].section // Section to handle var cbx = document.getElementById("cbid.ddns." + section + ".enabled"); // Enabled @@ -141,7 +141,7 @@ if (x.responseText == "_uncommitted_") { // we need a trick to display Ampersand "&" in stead of "&" or "&" // after translation - txt="<%:Please [Save & Apply] your changes first%>"; + var txt="<%:Please [Save & Apply] your changes first%>"; alert( txt.replace(new RegExp("<%:&%>", "g"), "&") ); } else { // should have data because status changed diff --git a/applications/luci-app-ddns/luasrc/view/ddns/system_status.htm b/applications/luci-app-ddns/luasrc/view/ddns/system_status.htm index 615b6b4336..41799cd4da 100644 --- a/applications/luci-app-ddns/luasrc/view/ddns/system_status.htm +++ b/applications/luci-app-ddns/luasrc/view/ddns/system_status.htm @@ -20,7 +20,7 @@ '<a class="cbi-button cbi-button-action important" type="button" href="' + data[0].url_up + '"><%:enable here%></a></strong>' ]); } else { - for( j = 1; j < data.length; j++ ) + for(var j = 1; j < data.length; j++ ) { rows.push([ @@ -57,4 +57,4 @@ </div> </div> </fieldset> -<!-- ++ END ++ Dynamic DNS ++ system_status.htm ++ -->
\ No newline at end of file +<!-- ++ END ++ Dynamic DNS ++ system_status.htm ++ --> |