make hidden ssid work minimally

v2.1 v2.1.beta3
Thorsten von Eicken 9 years ago
parent cf7abfc59a
commit 9920fd500e
  1. 4
      html/wifi/wifi.html
  2. 6
      html/wifi/wifi.js

@ -29,8 +29,8 @@
<label>Network SSID</label>
<div id="aps">Scanning... <div class="spinner spinner-small"></div></div>
<label for="opt-hiddenssid">
<input type="radio" name="essid" value="" id="opt-hiddenssid">
<input type="text" value="">
<input type="radio" name="essid" value="_hidden_ssid_" id="opt-hiddenssid">
<input type="text" id="hidden-ssid" value="" style="width:auto; display:inline-block;">
</label>
<label>WiFi password, if applicable:</label>
<input id="wifi-passwd" type="password" name="passwd" placeholder="password">

@ -41,7 +41,11 @@ function createInputForAp(ap) {
function getSelectedEssid() {
var e = document.forms.wifiform.elements;
for (var i=0; i<e.length; i++) {
if (e[i].type == "radio" && e[i].checked) return e[i].value;
if (e[i].type == "radio" && e[i].checked) {
var v = e[i].value;
if (v == "_hidden_ssid_") v = $("#hidden-ssid").value;
return v;
}
}
return currAp;
}

Loading…
Cancel
Save