From 8973ceb8e0e2f395bf9dafacd01d4fd2ee198a3c Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 21 Aug 2011 15:32:19 +0100 Subject: [PATCH] If locator is present before entering a callsign its not overwritten when search is done --- application/views/qso/index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/views/qso/index.php b/application/views/qso/index.php index bd288916..32a0b0c1 100644 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -274,10 +274,12 @@ $(document).ready(function(){ $('#country').val(result); }); - $.get('logbook/callsign_qra/' + $(this).val(), function(result) { - $('#locator').val(result); + if($('#locator').val() == "") { + $.get('logbook/callsign_qra/' + $(this).val(), function(result) { + $('#locator').val(result); }); - + } + $.get('logbook/callsign_name/' + $(this).val(), function(result) { $('#name').val(result); });