diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-15 18:03:10 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-06 12:25:34 +0000 |
commit | 917be7924e23fd4e0168927f16fa5d6e64ca4508 (patch) | |
tree | 3cdf0924c629df0dab3f6aa592ad556f7999ec4a /web/js/map-OpenLayers.js | |
parent | 660631a3ff063e6378c9838f40c1d9bfa8dcfd43 (diff) |
Remove Show all pins link and on_map_list_limit.
/around will now show all reports all the time, but we are about to
introduce pagination to stop that.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index e9a546786..004f0c3e2 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -482,11 +482,6 @@ var fixmystreet = fixmystreet || {}; if (fixmystreet.page == 'around') { fixmystreet.bbox_strategy = fixmystreet.bbox_strategy || new OpenLayers.Strategy.FixMyStreet(); pin_layer_options.strategies = [ fixmystreet.bbox_strategy ]; - pin_layer_options.protocol = new OpenLayers.Protocol.FixMyStreet({ - url: fixmystreet.original.href.split('?')[0] + '?ajax=1', - params: fixmystreet.all_pins ? { all_pins: 1 } : { }, - format: new OpenLayers.Format.FixMyStreet() - }); } if (fixmystreet.page == 'reports') { pin_layer_options.strategies = [ new OpenLayers.Strategy.FixMyStreetRefreshOnZoom() ]; @@ -577,37 +572,6 @@ var fixmystreet = fixmystreet || {}; this.innerHTML = translation_strings.show_pins; } }); - - $('#all_pins_link').click(function(e) { - e.preventDefault(); - fixmystreet.markers.setVisibility(true); - var texts = [ - 'en', 'Show old', 'Hide old', - 'nb', 'Vis gamle', 'Skjul gamle', - 'cy', 'Cynnwys hen adroddiadau', 'Cuddio hen adroddiadau' - ]; - for (var i=0; i<texts.length; i+=3) { - if (this.innerHTML == texts[i+1]) { - this.innerHTML = texts[i+2]; - fixmystreet.markers.protocol.options.params = { all_pins: 1 }; - fixmystreet.markers.refresh( { force: true } ); - lang = texts[i]; - } else if (this.innerHTML == texts[i+2]) { - this.innerHTML = texts[i+1]; - fixmystreet.markers.protocol.options.params = { }; - fixmystreet.markers.refresh( { force: true } ); - lang = texts[i]; - } - } - if (lang == 'cy') { - document.getElementById('hide_pins_link').innerHTML = 'Cuddio pinnau'; - } else if (lang == 'nb') { - document.getElementById('hide_pins_link').innerHTML = 'Skjul nĂ¥ler'; - } else { - document.getElementById('hide_pins_link').innerHTML = 'Hide pins'; - } - }); - } $(function(){ |