mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
More places where the 0 is annoying
This commit is contained in:
@@ -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 != "") {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user