[QSO.js] Added base_url to ALL ajax queries
这个提交包含在:
父节点
3511c49047
当前提交
5a71348e8c
共有 1 个文件被更改,包括 9 次插入 和 9 次删除
|
|
@ -307,7 +307,7 @@ $(document).on('change', 'input', function(){
|
||||||
|
|
||||||
function changebadge(entityname) {
|
function changebadge(entityname) {
|
||||||
if($("#sat_name" ).val() != "") {
|
if($("#sat_name" ).val() != "") {
|
||||||
$.getJSON('logbook/jsonlookupdxcc/' + convert_case(entityname) + '/SAT/0/0', function(result)
|
$.getJSON(base_url + 'index.php/logbook/jsonlookupdxcc/' + convert_case(entityname) + '/SAT/0/0', function(result)
|
||||||
{
|
{
|
||||||
|
|
||||||
$('#callsign_info').removeClass("badge-secondary");
|
$('#callsign_info').removeClass("badge-secondary");
|
||||||
|
|
@ -327,7 +327,7 @@ function changebadge(entityname) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$.getJSON('logbook/jsonlookupdxcc/' + convert_case(entityname) + '/0/' + $("#band").val() +'/' + $("#mode").val(), function(result)
|
$.getJSON(base_url + 'index.php/logbook/jsonlookupdxcc/' + convert_case(entityname) + '/0/' + $("#band").val() +'/' + $("#mode").val(), function(result)
|
||||||
{
|
{
|
||||||
// Reset CSS values before updating
|
// Reset CSS values before updating
|
||||||
$('#callsign_info').removeClass("badge-secondary");
|
$('#callsign_info').removeClass("badge-secondary");
|
||||||
|
|
@ -426,7 +426,7 @@ $("#callsign").focusout(function() {
|
||||||
find_callsign.replace(/\//g, "-");
|
find_callsign.replace(/\//g, "-");
|
||||||
|
|
||||||
// Replace / in a callsign with - to stop urls breaking
|
// 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)
|
$.getJSON(base_url + 'index.php/logbook/json/' + find_callsign.replace(/\//g, "-") + '/' + sat_type + '/' + json_band + '/' + json_mode + '/' + $('#stationProfile').val(), function(result)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Make sure the typed callsign and json result match
|
// Make sure the typed callsign and json result match
|
||||||
|
|
@ -441,7 +441,7 @@ $("#callsign").focusout(function() {
|
||||||
|
|
||||||
if($("#sat_name" ).val() != "") {
|
if($("#sat_name" ).val() != "") {
|
||||||
//logbook/jsonlookupgrid/io77/SAT/0/0
|
//logbook/jsonlookupgrid/io77/SAT/0/0
|
||||||
$.getJSON('logbook/jsonlookupcallsign/' + find_callsign.replace(/\//g, "-") + '/SAT/0/0', function(result)
|
$.getJSON(base_url + 'index.php/logbook/jsonlookupcallsign/' + find_callsign.replace(/\//g, "-") + '/SAT/0/0', function(result)
|
||||||
{
|
{
|
||||||
// Reset CSS values before updating
|
// Reset CSS values before updating
|
||||||
$('#callsign').removeClass("workedGrid");
|
$('#callsign').removeClass("workedGrid");
|
||||||
|
|
@ -460,7 +460,7 @@ $("#callsign").focusout(function() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$.getJSON('logbook/jsonlookupcallsign/' + find_callsign.replace(/\//g, "-") + '/0/' + $("#band").val() +'/' + $("#mode").val(), function(result)
|
$.getJSON(base_url + 'index.php/logbook/jsonlookupcallsign/' + find_callsign.replace(/\//g, "-") + '/0/' + $("#band").val() +'/' + $("#mode").val(), function(result)
|
||||||
{
|
{
|
||||||
// Reset CSS values before updating
|
// Reset CSS values before updating
|
||||||
$('#callsign').removeClass("workedGrid");
|
$('#callsign').removeClass("workedGrid");
|
||||||
|
|
@ -507,7 +507,7 @@ $("#callsign").focusout(function() {
|
||||||
var $dok_select = $('#darc_dok').selectize();
|
var $dok_select = $('#darc_dok').selectize();
|
||||||
var dok_selectize = $dok_select[0].selectize;
|
var dok_selectize = $dok_select[0].selectize;
|
||||||
if (result.dxcc.adif == '230') {
|
if (result.dxcc.adif == '230') {
|
||||||
$.get('lookup/dok/' + $('#callsign').val().toUpperCase(), function(result) {
|
$.get(base_url + 'index.php/lookup/dok/' + $('#callsign').val().toUpperCase(), function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
dok_selectize.addOption({name: result});
|
dok_selectize.addOption({name: result});
|
||||||
dok_selectize.setValue(result, false);
|
dok_selectize.setValue(result, false);
|
||||||
|
|
@ -634,7 +634,7 @@ $("#callsign").focusout(function() {
|
||||||
// Only set the frequency when not set by userdata/PHP.
|
// Only set the frequency when not set by userdata/PHP.
|
||||||
if ($('#frequency').val() == "")
|
if ($('#frequency').val() == "")
|
||||||
{
|
{
|
||||||
$.get('qso/band_to_freq/' + $('#band').val() + '/' + $('.mode').val(), function(result) {
|
$.get(base_url + 'index.php/qso/band_to_freq/' + $('#band').val() + '/' + $('.mode').val(), function(result) {
|
||||||
$('#frequency').val(result);
|
$('#frequency').val(result);
|
||||||
$('#frequency_rx').val("");
|
$('#frequency_rx').val("");
|
||||||
});
|
});
|
||||||
|
|
@ -663,7 +663,7 @@ $('#start_date').change(function() {
|
||||||
|
|
||||||
/* on mode change */
|
/* on mode change */
|
||||||
$('.mode').change(function() {
|
$('.mode').change(function() {
|
||||||
$.get('qso/band_to_freq/' + $('#band').val() + '/' + $('.mode').val(), function(result) {
|
$.get(base_url + 'index.php/qso/band_to_freq/' + $('#band').val() + '/' + $('.mode').val(), function(result) {
|
||||||
$('#frequency').val(result);
|
$('#frequency').val(result);
|
||||||
$('#frequency_rx').val("");
|
$('#frequency_rx').val("");
|
||||||
});
|
});
|
||||||
|
|
@ -672,7 +672,7 @@ $('.mode').change(function() {
|
||||||
/* Calculate Frequency */
|
/* Calculate Frequency */
|
||||||
/* on band change */
|
/* on band change */
|
||||||
$('#band').change(function() {
|
$('#band').change(function() {
|
||||||
$.get('qso/band_to_freq/' + $(this).val() + '/' + $('.mode').val(), function(result) {
|
$.get(base_url + 'index.php/qso/band_to_freq/' + $(this).val() + '/' + $('.mode').val(), function(result) {
|
||||||
$('#frequency').val(result);
|
$('#frequency').val(result);
|
||||||
$('#frequency_rx').val("");
|
$('#frequency_rx').val("");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用