mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
revert part of 3a41b52c
to respect http method's purpose
This commit is contained in:
parent
6567f99c74
commit
e76c31c9c6
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
require '../../includes/csrf.php';
|
||||
require_once '../../includes/config.php';
|
||||
|
||||
$interface = $_POST['iface'];
|
||||
$interface = $_GET['iface'];
|
||||
|
||||
if (isset($interface)) {
|
||||
// fetch dnsmasq.conf settings for interface
|
||||
|
|
|
@ -179,7 +179,7 @@ Option toggles are set dynamically depending on the loaded configuration
|
|||
*/
|
||||
function loadInterfaceDHCPSelect() {
|
||||
var strInterface = $('#cbxdhcpiface').val();
|
||||
$.post('ajax/networking/get_netcfg.php',{iface:strInterface},function(data){
|
||||
$.get('ajax/networking/get_netcfg.php?iface='+strInterface,function(data){
|
||||
jsonData = JSON.parse(data);
|
||||
$('#dhcp-iface')[0].checked = jsonData.DHCPEnabled;
|
||||
$('#txtipaddress').val(jsonData.StaticIP);
|
||||
|
|
Loading…
Reference in a new issue