mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Updated w/ set toggle states
This commit is contained in:
parent
5045cbfd33
commit
57174245ad
@ -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 New Issue
Block a user