Permalink
Browse files

If SatPC32 isn't the selected radio then clear the sat_name and sat_m…

…ode fields
  • Loading branch information...
magicbug committed Dec 2, 2018
1 parent 83ba78d commit 0b732d59caea6f47c0b5497eccc7bc68f153d370
Showing with 13 additions and 4 deletions.
  1. +13 −4 application/views/qso/index.php
@@ -325,15 +325,16 @@
}
});
// Get SAT_Name
// Get SAT_Name
$.get('radio/satname/' + $('select.radios option:selected').val(), function(result) {
$(".sat_name").val(result);
$(".sat_name").val(result);
});
// Get SAT_Name
// Get SAT_Name
$.get('radio/satmode/' + $('select.radios option:selected').val(), function(result) {
$(".sat_mode").val(result);
$(".sat_mode").val(result);
});
}
};
@@ -343,6 +344,14 @@
// If a radios selected from drop down select radio update.
$('.radios').change(updateFromCAT);
// 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("");
}
});
/* On Page Load */
var catcher = function() {
var changed = false;

0 comments on commit 0b732d5

Please sign in to comment.