kopia lustrzana https://github.com/magicbug/Cloudlog
[QSO] small improvement to json lookup jsonlookupcallsign
rodzic
b8d2032ed6
commit
59616f1f5c
|
@ -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,
|
||||
];
|
||||
|
|
|
@ -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");
|
||||
|
|
Ładowanie…
Reference in New Issue