hotfix for usb/wireless connection setup UI

This commit is contained in:
NoobishSVK
2024-03-10 23:14:50 +01:00
parent ff00841551
commit 7b55de3814
+8
View File
@@ -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);