mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Updated w/ set toggle states
This commit is contained in:
parent
5045cbfd33
commit
57174245ad
1 changed files with 11 additions and 2 deletions
|
@ -259,14 +259,23 @@ function loadInterfaceDHCPSelect() {
|
||||||
$('#txtmetric').val(jsonData.Metric);
|
$('#txtmetric').val(jsonData.Metric);
|
||||||
if (jsonData.StaticIP !== null && jsonData.StaticIP !== '') {
|
if (jsonData.StaticIP !== null && jsonData.StaticIP !== '') {
|
||||||
$('#chkstatic').closest('.btn').button('toggle');
|
$('#chkstatic').closest('.btn').button('toggle');
|
||||||
$('#chkstatic').closest('.btn').blur();
|
$('#chkstatic').closest('.btn').button('toggle').blur();
|
||||||
|
$('#chkstatic').blur();
|
||||||
|
$('#chkfallback').prop('disabled', true);
|
||||||
} else {
|
} else {
|
||||||
$('#chkdhcp').closest('.btn').button('toggle');
|
$('#chkdhcp').closest('.btn').button('toggle');
|
||||||
$('#chkdhcp').closest('.btn').blur();
|
$('#chkdhcp').closest('.btn').button('toggle').blur();
|
||||||
|
$('#chkdhcp').blur();
|
||||||
|
$('#chkfallback').prop('disabled', false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setDHCPToggles(state) {
|
||||||
|
$('#chkfallback').prop('disabled', state);
|
||||||
|
$('#dhcp-iface').prop('disabled', !state);
|
||||||
|
}
|
||||||
|
|
||||||
function loadChannel() {
|
function loadChannel() {
|
||||||
$.get('ajax/networking/get_channel.php',function(data){
|
$.get('ajax/networking/get_channel.php',function(data){
|
||||||
jsonData = JSON.parse(data);
|
jsonData = JSON.parse(data);
|
||||||
|
|
Loading…
Reference in a new issue