diff options
| author | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-13 22:06:50 +0000 |
|---|---|---|
| committer | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-01-13 22:06:50 +0000 |
| commit | 5577411f505db728e778a9bda8cd8a958c805317 (patch) | |
| tree | 036723e6d3daae48b8b7c100019f30394a9a0af2 /static | |
| parent | b4eb64e8760e0f546064f73a846c0c6b9086ad93 (diff) | |
| download | Chimère-5577411f505db728e778a9bda8cd8a958c805317.tar.bz2 Chimère-5577411f505db728e778a9bda8cd8a958c805317.zip | |
Checkbox to display markers and routes waiting for validation on the main map
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@12 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'static')
| -rw-r--r-- | static/main_map.js | 5 | ||||
| -rw-r--r-- | static/styles.css | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/static/main_map.js b/static/main_map.js index 0ba7ebb..adb97c1 100644 --- a/static/main_map.js +++ b/static/main_map.js @@ -80,6 +80,7 @@ function loadGeoObjects(){ /* get checked categories */ inputs = window.document.forms["frm_categories"]; var categories = ''; + var display_submited = false; for (var i = 0; i < inputs.length; i++) { input = inputs[i]; if (input.checked @@ -88,10 +89,14 @@ function loadGeoObjects(){ if(categories) categories += '_'; categories += id; } + if (input.checked && input.name == 'display_submited'){ + display_submited = true; + } } /* 0 stand for all categories */ if (!categories) categories = '0'; var uri = "/chimere/getGeoObjects/" + categories; + if (display_submited) uri += "/A_S"; OpenLayers.loadURL(uri, '', this, setGeoObjects); } diff --git a/static/styles.css b/static/styles.css index 6887dfb..f07784c 100644 --- a/static/styles.css +++ b/static/styles.css @@ -219,6 +219,7 @@ list-style:none; ul#categories li li{ font-variant:normal; +margin-left:20px; } ul#categories ul{ @@ -230,6 +231,11 @@ ul.subcategories img{ height:20px; } +ul#categories li#display_submited{ +font-variant:normal; +color:purple; +} + .errorlist{ color:purple; font-weight:bold; |
