In QSO logging, don't refresh callsign data if it's not changed

pull/2921/head
Peter Goodhall 2024-01-14 22:57:24 +00:00 zatwierdzone przez GitHub
commit e90cf25edc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 13 dodań i 7 usunięć

Wyświetl plik

@ -1,3 +1,5 @@
var lastCallsignUpdated=""
$( document ).ready(function() {
setTimeout(function() {
var callsignValue = localStorage.getItem("quicklogCallsign");
@ -540,10 +542,14 @@ function resetTimers(manual) {
}
$("#callsign").focusout(function() {
if ($(this).val().length >= 3) {
// Temp store the callsign
var temp_callsign = $(this).val();
if (temp_callsign == lastCallsignUpdated) {
return;
}
lastCallsignUpdated = temp_callsign;
// Temp store the callsign
var temp_callsign = $(this).val();
if ($(this).val().length >= 3) {
/* Find and populate DXCC */
$('.callsign-suggest').hide();