From 00060fb12c21aded243c50f7e1c91ec076e30a5e Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Sun, 13 Oct 2019 23:15:04 +0200 Subject: [PATCH] now with colored country-label --- application/views/interface_assets/footer.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index eba742d8..544b50e4 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -439,14 +439,20 @@ $(document).on('keypress',function(e) { //logbook/jsonlookupgrid/io77/SAT/0/0 $.getJSON('logbook/jsonlookupdxcc/' + convert_case(result.dxcc.entity) + '/SAT/0/0', function(result) { + + $('#callsign_info').removeClass("badge-secondary"); + $('#callsign_info').removeClass("badge-success"); + $('#callsign_info').removeClass("badge-danger"); $('#callsign_info').attr('title', ''); if (result.workedBefore) { + $('#callsign_info').addClass("badge-success"); $('#callsign_info').attr('title', 'DXCC was already worked in the past on this band and mode!'); } else { + $('#callsign_info').addClass("badge-danger"); $('#callsign_info').attr('title', 'New DXCC, not worked on this band and mode!'); } }) @@ -458,10 +464,12 @@ $(document).on('keypress',function(e) { if (result.workedBefore) { + $('#callsign_info').addClass("badge-success"); $('#callsign_info').attr('title', 'DXCC was already worked in the past on this band and mode!'); } else { + $('#callsign_info').addClass("badge-danger"); $('#callsign_info').attr('title', 'New DXCC, not worked on this band and mode!'); } })