summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-aria2/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-aria2/luasrc')
-rw-r--r--applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm3
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 b14cca228..66db6ce55 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 {