From a39df7b6088527faf4108e9a50040e8165ab6a3d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 7 Feb 2019 18:20:11 +0100 Subject: Map: manage show detail for simple map --- ishtar_common/templates/blocks/DataTables.html | 7 ++++--- ishtar_common/templates/ishtar/blocks/sheet_simple_map.html | 11 +++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html index 3e0faffd0..cf33a8cfa 100644 --- a/ishtar_common/templates/blocks/DataTables.html +++ b/ishtar_common/templates/blocks/DataTables.html @@ -114,14 +114,15 @@ map_submit_search = function(){ var timestamp = Math.floor(Date.now() / 1000); var map_id = "map-" + timestamp; $('.modal-progress .modal-header').html("{% trans 'Render map...' %}"); - var result = render_map(data, "{{name}}", nb_select, map_id); - $("#tab-content-map-{{name}}").html(result["html"]); + + var html = render_map(map_id); + $("#tab-content-map-{{name}}").html(html); $("#id_{{name}}-length_map").change(map_submit_search); if ($('.modal-progress').length > 0){ $('.modal-progress').modal('hide'); $('.modal-progress .modal-header').html(modal_base_text); } - register_map(map_id, result["points"]); + register_map(map_id, data); }); return false; diff --git a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html index bf25db653..d0ec50b5f 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html @@ -1,8 +1,12 @@ {% if geo_item.point_2d or geo_item.multi_polygon %} -
- +
+
+
+
+
- {% endif %} -- cgit v1.2.3