mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 11:37:24 +00:00
revert part of 3a41b52c to respect http method's purpose
This commit is contained in:
parent
6567f99c74
commit
e76c31c9c6
@ -3,7 +3,7 @@
|
|||||||
require '../../includes/csrf.php';
|
require '../../includes/csrf.php';
|
||||||
require_once '../../includes/config.php';
|
require_once '../../includes/config.php';
|
||||||
|
|
||||||
$interface = $_POST['iface'];
|
$interface = $_GET['iface'];
|
||||||
|
|
||||||
if (isset($interface)) {
|
if (isset($interface)) {
|
||||||
// fetch dnsmasq.conf settings for interface
|
// fetch dnsmasq.conf settings for interface
|
||||||
|
@ -179,7 +179,7 @@ Option toggles are set dynamically depending on the loaded configuration
|
|||||||
*/
|
*/
|
||||||
function loadInterfaceDHCPSelect() {
|
function loadInterfaceDHCPSelect() {
|
||||||
var strInterface = $('#cbxdhcpiface').val();
|
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);
|
jsonData = JSON.parse(data);
|
||||||
$('#dhcp-iface')[0].checked = jsonData.DHCPEnabled;
|
$('#dhcp-iface')[0].checked = jsonData.DHCPEnabled;
|
||||||
$('#txtipaddress').val(jsonData.StaticIP);
|
$('#txtipaddress').val(jsonData.StaticIP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user