From 9205dc249c7efcd6436cd067d1682a5ae0dc07df Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sat, 29 Jun 2024 15:06:10 +0200 Subject: [PATCH] sanitize some input data --- assets/js/sections/qso.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index ea05fb441..40efd1562 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -63,6 +63,14 @@ $( document ).ready(function() { } }); + // Sanitize some input data + $('#callsign').on('input', function() { + $(this).val($(this).val().replace(/\s/g, '')); + }); + $('#locator').on('input', function() { + $(this).val($(this).val().replace(/\s/g, '')); + }); + $('.callsign-suggest').hide(); setRst($(".mode").val());