Skip to content

Commit

Permalink
Warn that map editing doesn't work in IE 8/9.
Browse files Browse the repository at this point in the history
Temporary until localwiki#286 is resolved.
  • Loading branch information
philipn committed Jun 7, 2012
1 parent 244ba0c commit 4eea02c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sapling/maps/static/olwidget/js/sapling_utils.js
Expand Up @@ -325,6 +325,10 @@ SaplingMap = {
for (var i = 0; i < map.controls.length; i++) {
if (map.controls[i] && map.controls[i].CLASS_NAME ==
"olwidget.EditableLayerSwitcher") {
/* Temporary until issue #286 is fixed */
if ( $.browser.msie && (parseInt($.browser.version, 10) >= 8) ) {
alert("At the moment, map editing doesn't work in IE 8 & 9. Please use Firefox or Chrome instead to edit maps.");
}
layer = map.vectorLayers[0];
if (layer.controls) {
this._remove_unneeded_controls(layer);
Expand Down

0 comments on commit 4eea02c

Please sign in to comment.