diff options
Diffstat (limited to 'static/main_map.js')
-rw-r--r-- | static/main_map.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/static/main_map.js b/static/main_map.js index 3ccf2b0..0ba7ebb 100644 --- a/static/main_map.js +++ b/static/main_map.js @@ -19,6 +19,17 @@ See the file COPYING for details. /* main map */ +/* check all the categories if clicked, unckeck if unclick */ +function checkAll(item, ids){ + check = false; + if(item.checked == true){ + check = true; + } + for (i in ids){ + document.getElementById('category_'+ids[i]).checked = check; + } +} + /* show a block panel */ function show(id){ document.getElementById(id).style.display = 'block'; |