mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Callsign Lookup] Return Callsign in json request and match to input when looking a callsign up
This commit is contained in:
@@ -124,6 +124,7 @@ class Logbook extends CI_Controller {
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
$return = [
|
||||
"callsign" => strtoupper($callsign),
|
||||
"dxcc" => false,
|
||||
"callsign_name" => "",
|
||||
"callsign_qra" => "",
|
||||
|
||||
@@ -360,8 +360,9 @@ $("#callsign").focusout(function() {
|
||||
// Replace / in a callsign with - to stop urls breaking
|
||||
$.getJSON('logbook/json/' + find_callsign.replace(/\//g, "-") + '/' + sat_type + '/' + json_band + '/' + json_mode + '/' + $('#stationProfile').val(), function(result)
|
||||
{
|
||||
// Make sure the typed callsign and temp callsign match
|
||||
if($('#callsign').val = temp_callsign){
|
||||
|
||||
// Make sure the typed callsign and json result match
|
||||
if($('#callsign').val = result.callsign) {
|
||||
|
||||
if(result.dxcc.entity != undefined) {
|
||||
$('#country').val(convert_case(result.dxcc.entity));
|
||||
|
||||
Reference in New Issue
Block a user