summaryrefslogtreecommitdiff
path: root/static/main_map.js
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-12 22:43:31 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-12 22:43:31 +0000
commitb4eb64e8760e0f546064f73a846c0c6b9086ad93 (patch)
tree3c571a563d42b0ec2ceb9eda610ad61ef55614cf /static/main_map.js
parenta4bc9f49559db59eb8ce4208f3ad49b262a5d05f (diff)
downloadChimère-b4eb64e8760e0f546064f73a846c0c6b9086ad93.tar.bz2
Chimère-b4eb64e8760e0f546064f73a846c0c6b9086ad93.zip
Default check on the map - Check/Uncheck all of a category
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@11 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'static/main_map.js')
-rw-r--r--static/main_map.js11
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';