aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/isleofwight/js.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-04-25 14:02:51 +0100
committerStruan Donald <struan@exo.org.uk>2019-09-27 17:18:37 +0100
commiteffcb0f3043f3684e94db4866d0b434440e8ba53 (patch)
treed4c5db0bd5b4baa067f914c15ff25b9933be8f29 /web/cobrands/isleofwight/js.js
parent8b962fdf43724c853b5959539b36b4d46b25639f (diff)
[IsleOfWight] Initial cobrand.
Co-authored-by: Matthew Somerville <matthew@mysociety.org> Configured to allow: - updates only from original reporter - close updates from fetch reports - use OSM geocoder
Diffstat (limited to 'web/cobrands/isleofwight/js.js')
-rw-r--r--web/cobrands/isleofwight/js.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/web/cobrands/isleofwight/js.js b/web/cobrands/isleofwight/js.js
new file mode 100644
index 000000000..ed106cef6
--- /dev/null
+++ b/web/cobrands/isleofwight/js.js
@@ -0,0 +1,20 @@
+(function(){
+
+if (!fixmystreet.maps) {
+ return;
+}
+
+
+if (fixmystreet.cobrand == 'isleofwight') {
+ // We want the cobranded site to always display "Island Roads"
+ // as the destination for reports in the "Public details" section.
+ // This is OK because the cobranded site only shows categories which
+ // Island Roads actually handle.
+ // Replacing this function with a no-op stops the changes made
+ // to the cobranded councils_text_all.html from being clobbered and
+ // the 'correct' (according to bodies set up within FMS) body names
+ // being shown.
+ fixmystreet.update_public_councils_text = function() {};
+}
+
+})();