From 5512f1e4186480b54d9621f8213c2c8f3c91f5e1 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 5 Nov 2011 22:41:04 +0000 Subject: [PATCH] Fixed annoying locator bug in js code --- application/views/qso/index.php | 6 +++--- css/global.css | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/views/qso/index.php b/application/views/qso/index.php index 4cd53484..af08f0a4 100644 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -330,12 +330,12 @@ function settime () { }); /* Find Locator if the field is empty */ - if($('#locator').val() == "") { + if($('#locator').val() != null) { $.get('logbook/callsign_qra/' + $(this).val(), function(result) { $('#locator').val(result); + $('#locator_info').load("logbook/bearing/" + result).fadeIn("slow"); }); - - $('#locator_info').load("logbook/bearing/" + $(this).val()).fadeIn("slow"); + } /* Find Operators Name */ diff --git a/css/global.css b/css/global.css index 66150531..ece97d24 100644 --- a/css/global.css +++ b/css/global.css @@ -74,8 +74,8 @@ td.item { padding-bottom: 5px; } #country { border: none; } #locator_info { font-size: 13px; } #name { width: 208px; } -#comment { width: 63.8%; } -#qth { width: 20%; } +#comment { width: 63.7%; } +#qth { width: 19%; } .rst { width: 45px; } .partial td, .logbook td, .users td { padding: 5px; } .log_title { background-image: url('../images/grey_bg.png'); background-repeat: repeat-x; color: #439bf6; }