From eb0dff66c47f91f345ecbda223d67c32569148af Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 30 Apr 2018 11:31:56 +0100 Subject: Drop unused copy of function. This is already defined in fixmystreet.utils further up. --- web/js/map-OpenLayers.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 7d0f9076e..1e763d91f 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -330,20 +330,6 @@ $.extend(fixmystreet.utils, { fixmystreet.markers.refresh({force: true}); } - function parse_query_string() { - var qs = {}; - if (!location.search) { - return qs; - } - location.search.substring(1).split(/[&;]/).forEach(function(i) { - var s = i.split('='), - k = s[0], - v = s[1] && decodeURIComponent(s[1].replace(/\+/g, ' ')); - qs[k] = v; - }); - return qs; - } - function replace_query_parameter(qs, id, key) { var value = $('#' + id).val(); if (value) { -- cgit v1.2.3 From 36c382ed12ba6da3164e256dd3e4ae97fa7235ea Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 30 Apr 2018 17:04:36 +0100 Subject: Some IE8/old JS workarounds. --- web/js/map-OpenLayers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/js/map-OpenLayers.js') 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, ' ')); -- cgit v1.2.3