diff options
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 1 | ||||
-rw-r--r-- | web/js/geolocation.js | 2 | ||||
-rw-r--r-- | web/js/map-OpenLayers.js | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 31d048732..9432566db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,7 +54,7 @@ - Add some Cypress browser-based testing. - Upgrade Vagrantfile to use Ubuntu Xenial. #2093 - Add validation to cobrand-specific custom reporting fields. - - Drop support for IE7. #2114 + - Drop support for IE7, improve IE8 support. #2114 * v2.3.1 (12th February 2018) - Front end improvements: diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 9059a9c9a..60f15e0b8 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -1219,6 +1219,7 @@ $(function() { $(window).on('load', function () { setTimeout(function () { + if (!window.addEventListener) { return; } window.addEventListener('popstate', function(e) { // The user has pressed the Back button, and there is a // stored History state for them to return to. diff --git a/web/js/geolocation.js b/web/js/geolocation.js index 3c2cf04df..fbef4d7ea 100644 --- a/web/js/geolocation.js +++ b/web/js/geolocation.js @@ -30,7 +30,7 @@ fixmystreet.geolocate = function(element, success_callback) { var link = document.getElementById('geolocate_link'); if (!link) { return; } var https = window.location.protocol.toLowerCase() === 'https:'; - if ('geolocation' in navigator && https) { + if ('geolocation' in navigator && https && window.addEventListener) { fixmystreet.geolocate(link, function(pos) { var latitude = pos.coords.latitude.toFixed(6); var longitude = pos.coords.longitude.toFixed(6); diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 1e763d91f..a96e65953 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -8,7 +8,7 @@ $.extend(fixmystreet.utils, { if (!location.search) { return qs; } - location.search.substring(1).split(/[;&]/).forEach(function(i) { + $.each(location.search.substring(1).split(/[;&]/), function(n, i) { var s = i.split('='), k = s[0], v = s[1] && decodeURIComponent(s[1].replace(/\+/g, ' ')); |