Also change ajax calls for QSO log view to post
这个提交包含在:
父节点
6b9ad004ad
当前提交
8929f17886
共有 1 个文件被更改,包括 23 次插入 和 12 次删除
|
|
@ -981,18 +981,29 @@ $(document).on('keypress',function(e) {
|
||||||
var markers = L.layerGroup();
|
var markers = L.layerGroup();
|
||||||
var pos = [51.505, -0.09];
|
var pos = [51.505, -0.09];
|
||||||
var mymap = L.map('qsomap').setView(pos, 12);
|
var mymap = L.map('qsomap').setView(pos, 12);
|
||||||
<?php
|
$.ajax({
|
||||||
if ($active_station_info->station_gridsquare != "") { ?>
|
url: base_url + 'index.php/logbook/qralatlngjson',
|
||||||
$.getJSON('logbook/qralatlngjson/<?php echo $user_gridsquare; ?>', function(result) {
|
type: 'post',
|
||||||
mymap.panTo([result[0], result[1]]);
|
data: {
|
||||||
pos = result;
|
<?php if ($active_station_info->station_gridsquare != "") { ?>
|
||||||
})
|
qra: '<?php echo $user_gridsquare; ?>',
|
||||||
<?php } else if (null !== $this->config->item('locator')) { ?>
|
<?php } else if (null !== $this->config->item('locator')) { ?>
|
||||||
$.getJSON('logbook/qralatlngjson/<?php echo $this->config->item('locator'); ?>', function(result) {
|
qra: '<?php echo $this->config->item('locator'); ?>',
|
||||||
mymap.panTo([result[0], result[1]]);
|
<?php } else { ?>
|
||||||
pos = result;
|
// Fallback to London in case all else fails
|
||||||
})
|
qra: 'IO91WM',
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
},
|
||||||
|
success: function(data) {
|
||||||
|
result = JSON.parse(data);
|
||||||
|
if (typeof result[0] !== "undefined" && typeof result[1] !== "undefined") {
|
||||||
|
mymap.panTo([result[0], result[1]]);
|
||||||
|
pos = result;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function() {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server');?>', {
|
L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server');?>', {
|
||||||
maxZoom: 18,
|
maxZoom: 18,
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用