Only serve JS if maps are really to be displayed

Signed-off-by: phl0 <github@florian-wolters.de>
pull/1643/head
phl0 2022-10-06 12:51:36 +02:00
rodzic 40b5746e48
commit 00ecfa8e5a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 48EA1E640798CA9A
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1292,7 +1292,7 @@ $(document).ready(function(){
<?php } ?>
<?php if ($this->uri->segment(1) == "gridsquares") { ?>
<?php if ($this->uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/leaflet/L.MaidenheadColoured.js"></script>
@ -1435,7 +1435,7 @@ $(document).ready(function(){
</script>
<?php } ?>
<?php if ($this->uri->segment(1) == "activated_grids") { ?>
<?php if ($this->uri->segment(1) == "activated_grids" && !empty($this->uri->segment(2))) { ?>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/leaflet/L.MaidenheadColoured.js"></script>