From bccac276d46ee4fc109efb5a37eba9cbcfda2f08 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 26 Feb 2019 11:59:03 +0100 Subject: Map: improve layout on map windows --- ishtar_common/static/js/ishtar.js | 25 ++++++++++++---------- .../templates/ishtar/blocks/sheet_simple_map.html | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 415398b95..0aac181ab 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -1269,18 +1269,21 @@ var displayed_map_msg = "{0} items displayed on the map"; var non_displayed_map_msg = "{0} items not displayed"; var non_displayed_map_link_msg = "(list)"; -var render_map = function(map_id, use_map_limit){ +var render_map = function(map_id, use_map_limit, hide_limit){ var html = ""; - html += "
"; - html += "
"; - html += "
"; - html += ""; - html += limit_map_msg.format(number_with_commas(limit_map_nb)); - html += " "; - html += "
"; + if (!hide_limit){ + html += "
"; + html += "
"; + html += "
"; + html += ""; + html += limit_map_msg.format(number_with_commas(limit_map_nb)); + html += " "; + html += "
"; + } + html += "
"; html += "
"; html += render_map_list_modal(map_id); diff --git a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html index d0ec50b5f..d94c6024c 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html @@ -5,7 +5,7 @@