[QSO edit] Check grid length to stop distance/bearing call when grid is removed

这个提交包含在:
Andreas 2023-06-22 18:58:13 +02:00
父节点 ef0c3e98ce
当前提交 c9085852a8

查看文件

@ -139,10 +139,12 @@ function qso_edit(id) {
});
$('#locator').change(function(){
$('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
$.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
document.getElementById("distance").value = result;
});
if ($(this).val().length >= 4) {
$('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
$.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
document.getElementById("distance").value = result;
});
}
});
$('#sota_ref_edit').selectize({