Skip to content
Permalink
Browse files

Added the start of the callsign suggest feature

  • Loading branch information...
magicbug committed Aug 13, 2019
1 parent 933ff98 commit 50fc45dd8017f1dd0dd18b6f7b7617f9b583d521
Showing with 25 additions and 1 deletion.
  1. +15 −1 application/views/interface_assets/footer.php
  2. +6 −0 application/views/qso/index.php
  3. +4 −0 assets/css/general.css
@@ -239,10 +239,24 @@ function reset_fields() {
});
// On Key up check and suggest callsigns
$("#callsign").keyup(function() {
if ($(this).val().length >= 3) {
$('.callsign-suggest').show();
$.get('lookup/scp/' + $(this).val().toUpperCase(), function(result) {
$('.callsign-suggestions').text(result);
});
}
});
$("#callsign").focusout(function() {
if ($(this).val().length >= 3) {
/* Find and populate DXCC */
$.getJSON('logbook/json/' + $(this).val(), function(result)
$('.callsign-suggest').hide();
$.getJSON('logbook/json/' + $(this).val().toUpperCase(), function(result)
{
//$('#country').val(result); lotw_info
if(result.dxcc.entity != undefined) {
@@ -303,6 +303,12 @@
<div id="qsomap" style="width: 100%; height: 200px;"></div>
</div>

<div class="card callsign-suggest">
<div class="card-header"><h4 class="card-title">Suggestions</h4></div>

<div class="card-body callsign-suggestions"></div>
</div>

<div class="card previous-qsos">
<div class="card-header"><h4 class="card-title">Previous Contacts</h4></div>
<div class="card-body">
@@ -133,5 +133,9 @@ TD.lotw{
margin-bottom: 10px;
}

.callsign-suggest {
margin-bottom: 10px;
}



0 comments on commit 50fc45d

Please sign in to comment.
You can’t perform that action at this time.