If SatPC32 is unselected from radio dropdown clear the sat_name and sat_mode windows

这个提交包含在:
Peter Goodhall 2019-08-18 16:00:15 +01:00
父节点 4b6d59d152
当前提交 ae131c6679

查看文件

@ -469,7 +469,7 @@ $(document).ready(function(){
} else if ($(this).val() == 'FSK441' || $(this).val() == 'JT6M') {
$('#rst_sent').val('26');
$('#rst_recv').val('26');
} else if ($(this).val() == 'CW' || $(this).val() == 'RTTY' || $(this).val() == 'PSK31' !! $(this).val() == 'PSK63') {
} else if ($(this).val() == 'CW' || $(this).val() == 'RTTY' || $(this).val() == 'PSK31' || $(this).val() == 'PSK63') {
$('#rst_sent').val('599');
$('#rst_recv').val('599');
} else {
@ -538,9 +538,10 @@ $(document).ready(function(){
// If radio isn't SatPC32 clear sat_name and sat_mode
$( ".radios" ).change(function() {
if ($("#yourdropdownid option:selected").text() != "SatPC32") {
$(".sat_name").val("");
$(".sat_mode").val("");
if ($(".radios option:selected").text() != "SatPC32") {
console.log("not satPC32");
$("#sat_name").val("");
$("#sat_mode").val("");
}
});