[Accumulated Statistics] Fixed when no QSOs found.
这个提交包含在:
父节点
e257ffa109
当前提交
9e4c97e45b
共有 2 个文件被更改,包括 105 次插入 和 93 次删除
|
|
@ -8,6 +8,10 @@ class Accumulate_model extends CI_Model
|
|||
$CI->load->model('logbooks_model');
|
||||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||
|
||||
if (!$logbooks_locations_array) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$location_list = "'".implode("','",$logbooks_locations_array)."'";
|
||||
|
||||
switch ($award) {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,13 @@ function accumulatePlot(form) {
|
|||
type: 'post',
|
||||
data: { 'Band': form.band.value, 'Award': award, 'Mode': mode, 'Period': period },
|
||||
success: function (data) {
|
||||
if (!$.trim(data)) {
|
||||
$("#accumulateContainer").empty();
|
||||
$("#accumulateContainer").append('<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Nothing found!</div>');
|
||||
$(".ld-ext-right").removeClass('running');
|
||||
$(".ld-ext-right").prop('disabled', false);
|
||||
}
|
||||
else {
|
||||
// used for switching award text in the table and the chart
|
||||
switch (award) {
|
||||
case 'dxcc': var awardtext = "DXCC\'s"; break;
|
||||
|
|
@ -122,5 +129,6 @@ function accumulatePlot(form) {
|
|||
$(".buttons-csv").css("color", "white");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用