mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
hotfix for usb/wireless connection setup UI
This commit is contained in:
@@ -162,6 +162,14 @@ function submitData() {
|
|||||||
|
|
||||||
$('#connection-type-toggle').prop("checked", data.xdrd.wirelessConnection || false);
|
$('#connection-type-toggle').prop("checked", data.xdrd.wirelessConnection || false);
|
||||||
|
|
||||||
|
if($('#connection-type-toggle').is(":checked")) {
|
||||||
|
$('#tuner-usb').hide();
|
||||||
|
$('#tuner-wireless').show();
|
||||||
|
} else {
|
||||||
|
$('#tuner-wireless').hide();
|
||||||
|
$('#tuner-usb').show();
|
||||||
|
}
|
||||||
|
|
||||||
$('#xdrd-ip').val(data.xdrd.xdrdIp);
|
$('#xdrd-ip').val(data.xdrd.xdrdIp);
|
||||||
$('#xdrd-port').val(data.xdrd.xdrdPort);
|
$('#xdrd-port').val(data.xdrd.xdrdPort);
|
||||||
$('#xdrd-password').val(data.xdrd.xdrdPassword);
|
$('#xdrd-password').val(data.xdrd.xdrdPassword);
|
||||||
|
|||||||
Reference in New Issue
Block a user