mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Added loadInterfaceDHCPSelect()
This commit is contained in:
parent
3b5c7805cb
commit
e0235d640a
@ -236,9 +236,28 @@ function loadWifiStations(refresh) {
|
||||
.load('ajax/networking/wifi_stations.php'+qs, complete);
|
||||
};
|
||||
}
|
||||
|
||||
$(".js-reload-wifi-stations").on("click", loadWifiStations(true));
|
||||
|
||||
|
||||
function loadInterfaceDHCP(selected) {
|
||||
|
||||
}
|
||||
|
||||
function loadInterfaceDHCPSelect() {
|
||||
var interface = $('#cbxdhcpiface').val();
|
||||
console.log(interface);
|
||||
$.get('ajax/networking/get_netcfg.php?iface='+interface,function(data){
|
||||
jsonData = JSON.parse(data);
|
||||
$('#dhcp-iface')[0].checked = jsonData.DHCPEnabled;
|
||||
$('#txtrangestart').val(jsonData.RangeStart);
|
||||
$('#txtrangeend').val(jsonData.RangeEnd);
|
||||
$('#txtrangeleasetime').val(jsonData.leaseTime);
|
||||
$('#txtdns1').val(jsonData.DNS1);
|
||||
$('#txtdns2').val(jsonData.DNS2);
|
||||
$('#cbxrangeleasetimeunits').val(jsonData.leaseTimeInterval);
|
||||
});
|
||||
}
|
||||
|
||||
function loadChannel() {
|
||||
$.get('ajax/networking/get_channel.php',function(data){
|
||||
jsonData = JSON.parse(data);
|
||||
|
Loading…
Reference in New Issue
Block a user