mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
populate UI dhcp name from config.json
This commit is contained in:
@@ -440,13 +440,15 @@ function performConnect(conntype){
|
|||||||
stopRefreshAPInterval();
|
stopRefreshAPInterval();
|
||||||
|
|
||||||
var pwd;
|
var pwd;
|
||||||
var dhcpname = $("#dhcp-name").val();;
|
var dhcpname;
|
||||||
if (conntype == 'manual') {
|
if (conntype == 'manual') {
|
||||||
//Grab the manual SSID and PWD
|
//Grab the manual SSID and PWD
|
||||||
selectedSSID=$('#manual_ssid').val();
|
selectedSSID=$('#manual_ssid').val();
|
||||||
pwd = $("#manual_pwd").val();
|
pwd = $("#manual_pwd").val();
|
||||||
|
dhcpname= $("#dhcp-name2").val();;
|
||||||
}else{
|
}else{
|
||||||
pwd = $("#pwd").val();
|
pwd = $("#pwd").val();
|
||||||
|
dhcpname= $("#dhcp-name1").val();;
|
||||||
}
|
}
|
||||||
//reset connection
|
//reset connection
|
||||||
$( "#loading" ).show();
|
$( "#loading" ).show();
|
||||||
@@ -671,6 +673,9 @@ function getConfig() {
|
|||||||
}
|
}
|
||||||
} else if (key == 'autoexec1') {
|
} else if (key == 'autoexec1') {
|
||||||
$("input#autoexec1").val(data["autoexec1"]);
|
$("input#autoexec1").val(data["autoexec1"]);
|
||||||
|
} else if (key == 'host_name') {
|
||||||
|
$("dhcp-name1").val(data["host_name"]);
|
||||||
|
$("dhcp-name2").val(data["host_name"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$("tbody#nvsTable").append(
|
$("tbody#nvsTable").append(
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<h2>DHCP host name</h2>
|
<h2>DHCP host name</h2>
|
||||||
<section id="wifi-list">
|
<section id="wifi-list">
|
||||||
<input id="dhcp-name" type="text" placeholder="" value="squeezeamp">
|
<input id="dhcp-name2" type="text" placeholder="" value="squeezeamp">
|
||||||
</section>
|
</section>
|
||||||
<h2>Manual Connection</h2>
|
<h2>Manual Connection</h2>
|
||||||
<section>
|
<section>
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<h2>DHCP host name</h2>
|
<h2>DHCP host name</h2>
|
||||||
<section id="wifi-list">
|
<section id="wifi-list">
|
||||||
<input id="dhcp-name" type="text" placeholder="" value="squeezeamp">
|
<input id="dhcp-name1" type="text" placeholder="" value="squeezeamp">
|
||||||
</section>
|
</section>
|
||||||
<h2>Password for <span id="ssid-pwd"></span></h2>
|
<h2>Password for <span id="ssid-pwd"></span></h2>
|
||||||
<section>
|
<section>
|
||||||
|
|||||||
Reference in New Issue
Block a user