From e6dc3ab803e481c1ee91c86ce99bd11c8815d07e Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:54:03 +0200 Subject: [PATCH] Sets CQ Zone when DXCC is set when you create a location --- application/views/interface_assets/footer.php | 6 +++++ application/views/station_profile/create.php | 27 ++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index c38c60219..bea3fb9d7 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -681,6 +681,12 @@ $('#dxcc_id').ready(function() { $('#dxcc_id').on('change', function() { printWarning(); + let dxccadif = $('#dxcc_id').val(); + let dxccinfo = dxccarray.filter(function(dxcc) { + return dxcc.adif == dxccadif; + }); + $("#stationCQZoneInput").val(dxccinfo[0].cq); + // $("#stationITUZoneInput").val(dxccinfo[0].itu); // Commented out, since we do not have itu data. }); diff --git a/application/views/station_profile/create.php b/application/views/station_profile/create.php index 676951f65..d6ff7f8d6 100644 --- a/application/views/station_profile/create.php +++ b/application/views/station_profile/create.php @@ -1,3 +1,22 @@ +
@@ -201,18 +220,18 @@
-
- +
+
-
+
".__("HRDLog.net Userprofile page").""); ?>
- +