diff options
author | QuentinAndre <quentin.andre@imt-atlantique.net> | 2021-08-07 01:23:16 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-11-16 17:04:41 +0100 |
commit | 1c44b037a372b76262472a7fda1748754fcabc5b (patch) | |
tree | cdccb81282faf9e98bb0c87f2e589977ee08ece4 /ishtar_common/templates | |
parent | 4fd4a7ede4aecc9b77cfeb80b91bb4593c2ba026 (diff) | |
download | Ishtar-1c44b037a372b76262472a7fda1748754fcabc5b.tar.bz2 Ishtar-1c44b037a372b76262472a7fda1748754fcabc5b.zip |
PR for peer review
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_geo_items.html | 7 | ||||
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_simple_map.html | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html b/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html index 36fbabfcf..99fc7b866 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html @@ -24,9 +24,9 @@ </dl> <script> var hide_get_polygons = function() { - const disp = $("#display-geo-items"); - const get_poly = $("#get-polygons"); - const label = $("#label-get-polygons"); + var disp = $("#display-geo-items"); + var get_poly = $("#get-polygons"); + var label = $("#label-get-polygons"); get_poly.hide(); label.hide(); disp.change( function () { @@ -38,6 +38,7 @@ var hide_get_polygons = function() { }) } hide_get_polygons(); + </script> {% endif %} {% endif %}
\ No newline at end of file diff --git a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html index b4e669a70..e8a33ae68 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html @@ -53,6 +53,10 @@ get_polygons.change( function () { disp_map(); display_geo_items(disp.val(), get_polygons.val()); }) +console.log('points with base points'); +display_associated_points("map-{{window_id}}-{{geo_item.SLUG}}-{{geo_item.pk}}", + {{geo_item.point_2d_geojson|safe}}, "{{geo_item.SLUG}}"); + {% endif %} </script> {% endif %} |