From ca0ffc80337fc00bf355c40a15b2a1b34774c05d 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 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'ishtar_common/static/js') 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); -- cgit v1.2.3