diff options
author | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-12 22:43:31 +0000 |
---|---|---|
committer | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-12 22:43:31 +0000 |
commit | b4eb64e8760e0f546064f73a846c0c6b9086ad93 (patch) | |
tree | 3c571a563d42b0ec2ceb9eda610ad61ef55614cf /static/main_map.js | |
parent | a4bc9f49559db59eb8ce4208f3ad49b262a5d05f (diff) | |
download | Chimè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.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'; |