summaryrefslogtreecommitdiff
path: root/templates/main_map.html
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-08-16 17:02:25 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-08-16 17:02:25 +0000
commit9a26ce60cf6709acbd83c0b5665b148d3187aa97 (patch)
tree8c689083de234f3a42324dfa00e209ea5ef4e9c8 /templates/main_map.html
parent777e0ab523b9b90e5f57d705eab20d772b209b44 (diff)
downloadChimère-9a26ce60cf6709acbd83c0b5665b148d3187aa97.tar.bz2
Chimère-9a26ce60cf6709acbd83c0b5665b148d3187aa97.zip
Show/hide subcategories - #47
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@33 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'templates/main_map.html')
-rw-r--r--templates/main_map.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/main_map.html b/templates/main_map.html
index e442757..882e0f2 100644
--- a/templates/main_map.html
+++ b/templates/main_map.html
@@ -9,10 +9,10 @@ var lst_{{category.id}}=new Array();
{% for sub_category in lst_sub_categories %}
lst_{{category.id}}.push("{{sub_category.id}}");{% endfor %}
--></script>
- <li><input type='checkbox' id='maincat_{{category.id}}' onclick='checkAll(this, lst_{{category.id}});loadGeoObjects();' {% if category.selected %} checked='checked'{%endif%} />
- {% trans category.name %}
- <img class='zoom_image' alt='{% trans "Zoom to" %} {{category.name}}' src='{{media_path}}icons/zoom.png' onclick='zoomToCategory(lst_{{category.id}}.join("_"))'/>
- <ul class='subcategories'>{% for sub_category in lst_sub_categories %}
+ <li>{% if category.selected %}<script language='javascript'>var current_cat={{category.id}};{% endif %}</script><img class='control_image' id='maincategory_img_{{category.id}}' alt='control' src='{{media_path}}icons/{% if category.selected %}minus.png{%else%}plus.png{%endif%}' onclick='toggleCategory({{category.id}});'/>
+{% trans category.name %}
+<img class='zoom_image' alt='{% trans "Zoom to" %} {{category.name}}' src='{{media_path}}icons/zoom.png' onclick='zoomToCategory(lst_{{category.id}}.join("_"))'/>
+ <ul class='subcategories' id='maincategory_{{category.id}}'{% if not category.selected %} style='display:None'{% endif %}>{% for sub_category in lst_sub_categories %}
<li><input type='checkbox' onclick='loadGeoObjects()' name='category_{{sub_category.id}}' id='category_{{sub_category.id}}'{% if sub_category.selected %} checked='checked'{% endif %}/> <label for='{{sub_category.id}}'>
<img alt='{{sub_category.name}}' src='{{media_path}}{{sub_category.icon.image}}'/>
{% trans sub_category.name %}</label>