diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-11-02 13:52:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 13:52:37 +0100 |
commit | d1c24c8972f9323aa616c142019cbc89d6dd0272 (patch) | |
tree | fdd75e2206f6b2e4798692833dbffca3754f9dd6 /applications/luci-app-aria2 | |
parent | 1c076cd26dde1d510658e8cb7cb2ca0ba0205a82 (diff) | |
parent | ec63339ae5258509cf7a8829d4dd79519948c256 (diff) |
Merge pull request #2252 from stweil/lgtm
Add missing variable declarations in JavaScript code
Diffstat (limited to 'applications/luci-app-aria2')
-rw-r--r-- | applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm index b14cca228f..66db6ce550 100644 --- a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm +++ b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm @@ -24,7 +24,7 @@ function randomString(len) { var $chars = 'abcdefghijklmnopqrstuvwxyz1234567890'; var maxPos = $chars.length; var pwd = ''; - for (i = 0; i < len; i++) { + for (var i = 0; i < len; i++) { pwd += $chars.charAt(Math.floor(Math.random() * maxPos)); } return pwd; @@ -41,6 +41,7 @@ function showRPCURL() { var newTextNode = document.getElementById("aria2rpcpath"); var auth_method = document.getElementById("cbid.aria2.main.rpc_auth_method"); var auth_port = document.getElementById("cbid.aria2.main.rpc_listen_port"); + var auth_port_value; if (auth_port.value == "") { auth_port_value = "6800" } else { |