From 02051030bbec1075660e224d890be08d7e9cd08b Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Sat, 22 Mar 2025 16:00:59 +0100 Subject: [PATCH] [Flightpath] View passes when clicking on sat --- application/controllers/Satellite.php | 3 +- application/views/satellite/flightpath.php | 4 +- application/views/satellite/passtable.php | 9 +- assets/js/sections/flightpath.js | 139 +++++++++++++++------ 4 files changed, 109 insertions(+), 46 deletions(-) diff --git a/application/controllers/Satellite.php b/application/controllers/Satellite.php index a586c9ee9..bfb1fe962 100644 --- a/application/controllers/Satellite.php +++ b/application/controllers/Satellite.php @@ -207,7 +207,8 @@ class Satellite extends CI_Controller { $this->load->library('Qra'); $pageData['latlng'] = $this->qra->qra2latlong($homegrid[0]); - $data['selsat']=strtoupper($sat ?? ''); + $pageData['homegrid'] = $homegrid[0]; + $data['selsat'] = strtoupper($sat ?? ''); // Render Page $pageData['page_title'] = "Satellite Flightpath"; $this->load->view('interface_assets/header', $pageData); diff --git a/application/views/satellite/flightpath.php b/application/views/satellite/flightpath.php index b6f35a326..f623c2cbe 100644 --- a/application/views/satellite/flightpath.php +++ b/application/views/satellite/flightpath.php @@ -5,11 +5,13 @@