diff options
| author | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-08-16 17:02:25 +0000 |
|---|---|---|
| committer | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-08-16 17:02:25 +0000 |
| commit | 9a26ce60cf6709acbd83c0b5665b148d3187aa97 (patch) | |
| tree | 8c689083de234f3a42324dfa00e209ea5ef4e9c8 /static | |
| parent | 777e0ab523b9b90e5f57d705eab20d772b209b44 (diff) | |
| download | Chimè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 'static')
| -rw-r--r-- | static/icons/minus.png | bin | 0 -> 259 bytes | |||
| -rw-r--r-- | static/icons/plus.png | bin | 0 -> 275 bytes | |||
| -rw-r--r-- | static/main_map.js | 20 | ||||
| -rw-r--r-- | static/styles.css | 5 |
4 files changed, 25 insertions, 0 deletions
diff --git a/static/icons/minus.png b/static/icons/minus.png Binary files differnew file mode 100644 index 0000000..a95822f --- /dev/null +++ b/static/icons/minus.png diff --git a/static/icons/plus.png b/static/icons/plus.png Binary files differnew file mode 100644 index 0000000..404a24a --- /dev/null +++ b/static/icons/plus.png diff --git a/static/main_map.js b/static/main_map.js index 61f838a..145f936 100644 --- a/static/main_map.js +++ b/static/main_map.js @@ -18,6 +18,26 @@ See the file COPYING for details. /* main map */ +var current_cat; + +/* open a category section */ +function toggleCategory(id){ + old = document.getElementById('maincategory_' + current_cat) + if(old){ + old.style.display = 'None'; + old_img = document.getElementById('maincategory_img_' + current_cat); + old_img.src = "/" + extra_url + "static/icons/plus.png"; + } + if (id != current_cat){ + current_cat = id; + document.getElementById('maincategory_' + current_cat).style.display = 'block'; + img = document.getElementById('maincategory_img_' + current_cat); + img.src = "/" + extra_url + "static/icons/minus.png"; + } else { + current_cat = 0; + } +} + /* check all the categories if clicked, unckeck if unclick */ function checkAll(item, ids){ check = false; diff --git a/static/styles.css b/static/styles.css index 45b9b71..df08ee3 100644 --- a/static/styles.css +++ b/static/styles.css @@ -258,6 +258,11 @@ color:purple; cursor:pointer; } +.control_image{ +cursor:pointer; +vertical-align:text-bottom; +} + .errorlist{ color:purple; font-weight:bold; |
