diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-08 17:19:47 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-08 17:19:47 +0200 |
commit | ed3da12089c9c0c9a1222552a8026a9feddd1adb (patch) | |
tree | daa8c7d2fe2b0c032ede243ac84a43f35cdd4017 | |
parent | 32e867071cee00c6d5cfaa9a6e27cad2256cde32 (diff) | |
download | Chimère - projet de référence-ed3da12089c9c0c9a1222552a8026a9feddd1adb.tar.bz2 Chimère - projet de référence-ed3da12089c9c0c9a1222552a8026a9feddd1adb.zip |
Fix display glitches when category menu is not displayed
-rw-r--r-- | templates/chimere/blocks/actions.html | 4 | ||||
-rw-r--r-- | templates/chimere/blocks/map.html | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/templates/chimere/blocks/actions.html b/templates/chimere/blocks/actions.html index b658917..e31e1cc 100644 --- a/templates/chimere/blocks/actions.html +++ b/templates/chimere/blocks/actions.html @@ -27,13 +27,13 @@ {% endif %} {% if areas_visible %} <li id='maps-lnk'><span class='fa fa-chimere-action fa-chimere-maps'></span>{% display_areas %}</li> - <li id='permalink-lnk'><span class='fa fa-chimere-action fa-bookmark'></span><span id='permalink'></span></li> + {% endif %} + {% comment %}OL3-TODO<li id='permalink-lnk'><span class='fa fa-chimere-action fa-bookmark'></span><span id='permalink'></span></li>{% endcomment %} <li>{% routing %}</li> <li id='news-lnk'> <a data-toggle='modal' data-target="#news" href='#' id='news_button'><span class='fa fa-chimere-action fa-newspaper-o'></span><span class='lbl'>{% trans "News"%}</span></a> </li> <!-- <li id="simple_button-lnk"><a id='simple_button' href='{% url chimere:simple_index area_name_slash %}'><span class='fa fa-chimere-action fa-simplybuilt'></span><span class='lbl'> {% trans "Simple map" %}</span></a></li> --> - {% endif %} <li class='selection-sep'> </li> {% endif %} </ul> diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html index 3015500..a03b472 100644 --- a/templates/chimere/blocks/map.html +++ b/templates/chimere/blocks/map.html @@ -35,8 +35,12 @@ $(function(){ </ul> </div> <script type="text/javascript"> - {% if single_category %} - $(function() {$('#panel').hide()});{% endif %} + {% if not display_category_menu %} + $(function() { + $('#panel').hide(); + $(".show-hide-panel").hide(); + $("#categories-lnk").hide(); + });{% endif %} var chimere_init_options = {}; {% if MOBILE %}chimere_init_options["mobile"] = true;{% endif %} {% if enable_clustering %}chimere_init_options["enable_clustering"] = true;{% endif %} |