diff --git a/src/admin/autowifi.html b/src/admin/autowifi.html index 6720974..b4c1ad3 100644 --- a/src/admin/autowifi.html +++ b/src/admin/autowifi.html @@ -3,8 +3,8 @@ Wireless configuration - - + + @@ -28,10 +28,10 @@ - -
+ +
Known networks
- + diff --git a/src/admin/autowifi.js b/src/admin/autowifi.js index bcd8c2f..ac31df2 100644 --- a/src/admin/autowifi.js +++ b/src/admin/autowifi.js @@ -55,9 +55,11 @@ function fetchNetworkState() { if (data.status == "ERR") setResult(data.msg, true); var net = parseNetLine(data.payload); var modeText = "Unknown device mode ('" + net.mode + "')"; - if (net.mode == "ap") modeText = "Access point mode"; - else if (net.mode == "sta") modeText = "Client mode"; - $("#wlan_state").text(modeText + " (SSID: " + net.ssid + "; BSSID: " + net.bssid + "; channel: " + net.channel + ")"); + if (net.mode == "ap") { + $("#wlan_state").text("Access point mode"); + } else if (net.mode == "sta") { + $("#wlan_state").text("Client mode (SSID: " + net.ssid + "; BSSID: " + net.bssid + "; channel: " + net.channel + ")"); + } }); } @@ -72,8 +74,9 @@ function fetchAvailableNetworks() { options.empty(); $.each(data, function(index,value) { if (value != "") { - var ssid = parseNetLine(value).ssid; - options.append($("