populate UI dhcp name from config.json

This commit is contained in:
Christian Herzog
2019-10-05 12:30:43 +02:00
parent 6014f115fa
commit 49d7e74c55
2 changed files with 8 additions and 3 deletions

View File

@@ -440,13 +440,15 @@ function performConnect(conntype){
stopRefreshAPInterval();
var pwd;
var dhcpname = $("#dhcp-name").val();;
var dhcpname;
if (conntype == 'manual') {
//Grab the manual SSID and PWD
selectedSSID=$('#manual_ssid').val();
pwd = $("#manual_pwd").val();
dhcpname= $("#dhcp-name2").val();;
}else{
pwd = $("#pwd").val();
dhcpname= $("#dhcp-name1").val();;
}
//reset connection
$( "#loading" ).show();
@@ -671,6 +673,9 @@ function getConfig() {
}
} else if (key == '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(