[QSO] Fixes #557 Where /P wasn't handled properly

pull/770/head
Peter Goodhall 2021-01-29 20:11:35 +00:00
rodzic b69c8e91e4
commit b8d2032ed6
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -67,6 +67,9 @@ class Logbook extends CI_Controller {
$this->load->model('user_model');
if(!$this->user_model->authorize($this->config->item('auth_mode'))) { return; }
// Convert - in Callsign to / Used for URL processing
$callsign = str_replace("-","/",$callsign);
// Check if callsign is an LOTW User
$lotw_member = "";
$lotw_file_name = "./updates/lotw_users.csv";

Wyświetl plik

@ -31,7 +31,7 @@
<script src="<?php echo base_url() ;?>assets/js/sections/notes.js"></script>
<?php } ?>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datatables.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datatables.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/dataTables.buttons.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/buttons.html5.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/selectize.js"></script>
@ -781,8 +781,12 @@ $(document).on('change', 'input', function(){
var json_mode = $("#mode").val();
}
var find_callsign = $(this).val().toUpperCase();
$.getJSON('logbook/json/' + $(this).val().toUpperCase() + '/' + sat_type + '/' + json_band + '/' + json_mode, function(result)
find_callsign.replace(/\//g, "-");
// Replace / in a callsign with - to stop urls breaking
$.getJSON('logbook/json/' + find_callsign.replace(/\//g, "-") + '/' + sat_type + '/' + json_band + '/' + json_mode, function(result)
{
//$('#country').val(result); lotw_info
if(result.dxcc.entity != undefined) {