[QSO] small improvement to json lookup jsonlookupcallsign

This commit is contained in:
Peter Goodhall
2021-01-29 20:20:01 +00:00
parent b8d2032ed6
commit 59616f1f5c
2 changed files with 5 additions and 2 deletions

View File

@@ -317,6 +317,9 @@ class Logbook extends CI_Controller {
function jsonlookupcallsign($callsign, $type, $band, $mode) {
// Convert - in Callsign to / Used for URL processing
$callsign = str_replace("-","/",$callsign);
$return = [
"workedBefore" => false,
];

View File

@@ -795,7 +795,7 @@ $(document).on('change', 'input', function(){
if($("#sat_name" ).val() != "") {
//logbook/jsonlookupgrid/io77/SAT/0/0
$.getJSON('logbook/jsonlookupcallsign/' + $("#callsign").val().toUpperCase() + '/SAT/0/0', function(result)
$.getJSON('logbook/jsonlookupcallsign/' + find_callsign.replace(/\//g, "-") + '/SAT/0/0', function(result)
{
// Reset CSS values before updating
$('#callsign').removeClass("workedGrid");
@@ -814,7 +814,7 @@ $(document).on('change', 'input', function(){
}
})
} else {
$.getJSON('logbook/jsonlookupcallsign/' + $("#callsign").val().toUpperCase() + '/0/' + $("#band").val() +'/' + $("#mode").val(), function(result)
$.getJSON('logbook/jsonlookupcallsign/' + find_callsign.replace(/\//g, "-") + '/0/' + $("#band").val() +'/' + $("#mode").val(), function(result)
{
// Reset CSS values before updating
$('#callsign').removeClass("workedGrid");