Skip to content

Commit 6f78c8d

Browse files
committed
No IE8/9 warning for normal page views w/ map.
1 parent a63f07d commit 6f78c8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sapling/maps/static/olwidget/js/sapling_utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ SaplingMap = {
325325
for (var i = 0; i < map.controls.length; i++) {
326326
if (map.controls[i] && map.controls[i].CLASS_NAME ==
327327
"olwidget.EditableLayerSwitcher") {
328-
/* Temporary until issue #286 is fixed */
329-
if ( $.browser.msie && (parseInt($.browser.version, 10) >= 8) ) {
330-
alert("At the moment, map editing doesn't work in IE 8 & 9. Please use Firefox or Chrome instead to edit maps.");
331-
}
332328
layer = map.vectorLayers[0];
333329
if (layer.controls) {
330+
/* Temporary until issue #286 is fixed */
331+
if ( $.browser.msie && (parseInt($.browser.version, 10) >= 8) ) {
332+
alert("At the moment, map editing doesn't work in IE 8 & 9. Please use Firefox or Chrome instead to edit maps.");
333+
}
334334
this._remove_unneeded_controls(layer);
335335
map.controls[i].setEditing(layer);
336336

0 commit comments

Comments
 (0)