mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #1829 from int2001/trim_space
Trim Space for Call at QSO-form at JS and last-defense saving
This commit is contained in:
@@ -18,7 +18,7 @@ class Logbook_model extends CI_Model {
|
||||
/* Add QSO to Logbook */
|
||||
function create_qso() {
|
||||
|
||||
$callsign = str_replace('Ø', '0', $this->input->post('callsign'));
|
||||
$callsign = trim(str_replace('Ø', '0', $this->input->post('callsign')));
|
||||
// Join date+time
|
||||
$datetime = date("Y-m-d", strtotime($this->input->post('start_date'))) . " " . $this->input->post('start_time');
|
||||
if (($this->input->post('end_time') ?? '') != '') {
|
||||
|
||||
@@ -69,6 +69,7 @@ $('#callsign').on('input', function () {
|
||||
$(this).val($(this).val().replace(/\s/g, ''));
|
||||
$(this).val($(this).val().replace(/0/g, 'Ø'));
|
||||
$(this).val($(this).val().replace(/\./g, '/P'));
|
||||
$(this).val($(this).val().replace(/\W/g, ''));
|
||||
});
|
||||
|
||||
$('#locator').on('input', function () {
|
||||
|
||||
Reference in New Issue
Block a user