diff --git a/application/controllers/Lookup.php b/application/controllers/Lookup.php index 4d1a56d3f..ef73a9a78 100644 --- a/application/controllers/Lookup.php +++ b/application/controllers/Lookup.php @@ -52,6 +52,9 @@ class Lookup extends CI_Controller { } $data['reduced_mode'] = xss_clean($this->input->post('reduced_mode')) == 'true' ? true : false; + $data['current_band'] = xss_clean($this->input->post('current_band')) ?? ''; + $data['current_mode'] = xss_clean($this->input->post('current_mode')) ?? ''; + $data['dxcc'] = xss_clean($this->input->post('dxcc')); $data['was'] = xss_clean($this->input->post('was')); $data['sota'] = xss_clean($this->input->post('sota')); diff --git a/application/views/lookup/result.php b/application/views/lookup/result.php index 8e7259b42..91504874c 100644 --- a/application/views/lookup/result.php +++ b/application/views/lookup/result.php @@ -40,7 +40,11 @@ foreach ($result as $mode => $value) { case 'itu': $linkinfo = '' . $val . ''; break; } - $info = ''; + if ($current_band == $key && strtoupper($current_mode )== strtoupper($mode)) { + $info = ''; + } else { + $info = ''; + } if ($val == 'W') { $info .= '
' . $linkinfo . '
'; diff --git a/assets/js/sections/common.js b/assets/js/sections/common.js index 85d7a2a3d..8ccc52dbe 100644 --- a/assets/js/sections/common.js +++ b/assets/js/sections/common.js @@ -816,6 +816,8 @@ function getDxccResult(dxcc, name) { type: 'dxcc', dxcc: dxcc, reduced_mode: true, + current_band: $('#band').val(), + current_mode: $('#mode').val(), }, success: function (html) { $('.dxccsummary').remove();