diff options
Diffstat (limited to 'chimere/static')
| -rw-r--r-- | chimere/static/base.js | 14 | ||||
| -rw-r--r-- | chimere/static/edit_route_map.js | 2 | ||||
| -rw-r--r-- | chimere/static/main_map.js | 2 |
3 files changed, 15 insertions, 3 deletions
diff --git a/chimere/static/base.js b/chimere/static/base.js index 70b8742..1eba699 100644 --- a/chimere/static/base.js +++ b/chimere/static/base.js @@ -20,6 +20,18 @@ See the file COPYING for details. var default_area; var area_name; +/* indexOf definition for old IE versions */ +if(!Array.indexOf){ + Array.prototype.indexOf = function(obj){ + for(var i=0; i<this.length; i++){ + if(this[i]==obj){ + return i; + } + } + return -1; + } +} + /* show a block panel */ function show(id){ document.getElementById(id).style.display = 'block'; @@ -45,7 +57,7 @@ function getExtent() { var map_extent; var extent_key = 'MAP_EXTENT'; if (area_name){ extent_key = extent_key + '_' + area_name; } - for (i in cookies){ + for (var i=0; i < cookies.length; i++){ var items = cookies[i].split('='); key = items[0].split(' ').join(''); if (key == extent_key){ diff --git a/chimere/static/edit_route_map.js b/chimere/static/edit_route_map.js index 28a0498..69a24aa 100644 --- a/chimere/static/edit_route_map.js +++ b/chimere/static/edit_route_map.js @@ -95,7 +95,7 @@ function init(){ maxResolution: 156543.0399, units: 'm', projection: epsg_projection, - displayProjection: epsg_display_projection, + displayProjection: epsg_display_projection }; if (restricted_extent){options['restrictedExtent'] = restricted_extent;} map = new OpenLayers.Map('map_edit', options); diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js index 5c698c1..67d1bee 100644 --- a/chimere/static/main_map.js +++ b/chimere/static/main_map.js @@ -452,7 +452,7 @@ function init(){ maxResolution: 156543.0399, units: 'm', projection: new OpenLayers.Projection('EPSG:4326'), - theme:null, + theme:null }; if (restricted_extent){options['restrictedExtent'] = restricted_extent;} map = new OpenLayers.Map('map', options); |
