More places where the 0 is annoying

This commit is contained in:
int2001
2024-12-30 12:15:28 +00:00
parent aaf89b2aca
commit 37e05649a6
3 changed files with 5 additions and 2 deletions

View File

@@ -858,6 +858,8 @@ class Logbook extends CI_Controller {
if(!$this->user_model->authorize($this->config->item('auth_mode'))) { return; }
$id = str_replace('Ø', "0", $id);
$id2 = str_replace('Ø', "0", $id2);
$fixedid = $id;
if ($id2 != "") {

View File

@@ -98,7 +98,8 @@ class Search extends CI_Controller {
}
function search_result() {
$data['results'] = $this->fetchQueryResult(($this->input->post('search', TRUE) ?? ''), FALSE);
$sstring = str_replace('Ø', "0", $this->input->post("method", TRUE) ?? '');
$data['results'] = $this->fetchQueryResult($sstring, FALSE);
$this->load->view('search/search_result_ajax', $data);
}

View File

@@ -893,7 +893,7 @@ function searchButtonPress() {
if (event) { event.preventDefault(); }
if ($('#callsign').val()) {
let fixedcall = $('#callsign').val().trim();
$('#partial_view').load("logbook/search_result/" + fixedcall.replace('Ø', '0'), function() {
$('#partial_view').load("logbook/search_result/" + fixedcall.replaceAll('Ø', '0'), function() {
$('[data-bs-toggle="tooltip"]').tooltip();
$('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function() {
showQsoActionsMenu($(this).closest('.dropdown'));