diff options
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; |
