diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-11 17:04:09 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-11 17:04:09 +0100 |
commit | f42335b8ea0641e960407a74968b19e5f78ff467 (patch) | |
tree | 917b1ee7a2763e7a10db5f1884f40bd0232951c4 | |
parent | 5f35da36ff4d643d4ba1a32d9a1c1e578aa604d3 (diff) | |
download | Chimère - projet Saclay-master-v3.1.tar.bz2 Chimère - projet Saclay-master-v3.1.zip |
Better management of subcategory help textmaster-v3.1
-rw-r--r-- | templates/chimere/blocks/categories.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/chimere/blocks/categories.html b/templates/chimere/blocks/categories.html index f43030f..0c9f6d1 100644 --- a/templates/chimere/blocks/categories.html +++ b/templates/chimere/blocks/categories.html @@ -17,6 +17,12 @@ <li id='li_sub_{{sub_category.id}}' class='subcategory' data-subcategory="{{sub_category.id}}"> <span> + {% if sub_category.description %} + <a href="#"><i class="description_icon fa fa-info-circle" + aria-hidden="true" + onclick="$('#map').chimere('subcategory_detail', {{sub_category.id}});"></i> + </a> + {% endif %} <label for='category_{{sub_category.id}}'> {% trans sub_category.name %} </label> @@ -38,6 +44,13 @@ $(function() { } chimere_init_options['checked_categories'] = null; } + + $(".subcategory").mouseenter(function() { + $(this).find(".description_icon").show(); + }).mouseleave(function() { + $(this).find(".description_icon").hide(); + }); + }); // --> </script> |