From 00ecfa8e5aefc27087fb0d1c20bcbcde73124610 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 6 Oct 2022 12:51:36 +0200 Subject: [PATCH] Only serve JS if maps are really to be displayed Signed-off-by: phl0 --- application/views/interface_assets/footer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 73e4c99a..ce0b2e0d 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1292,7 +1292,7 @@ $(document).ready(function(){ -uri->segment(1) == "gridsquares") { ?> +uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?> @@ -1435,7 +1435,7 @@ $(document).ready(function(){ -uri->segment(1) == "activated_grids") { ?> +uri->segment(1) == "activated_grids" && !empty($this->uri->segment(2))) { ?>