aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/hounslow/js.js
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-05-03 14:40:47 +0100
committerDave Arter <davea@mysociety.org>2019-06-04 14:54:52 +0100
commit287c27dfd8dae99a4a0cc3b3deebca4252c5f7ae (patch)
treec17e0c209da094116e6980835f6c712be4ab4877 /web/cobrands/hounslow/js.js
parent655ffc9a523ec75385e61bbc8f160ac91c1c7697 (diff)
[Hounslow] Display name as ‘Hounslow Highways’ not borough council
Technically the cobrand isn't for the council but rather the Hounslow Highways PFI. So make it clear on the cobranded site where reports will be sent.
Diffstat (limited to 'web/cobrands/hounslow/js.js')
-rw-r--r--web/cobrands/hounslow/js.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/cobrands/hounslow/js.js b/web/cobrands/hounslow/js.js
index 21bc3b96c..e8772b691 100644
--- a/web/cobrands/hounslow/js.js
+++ b/web/cobrands/hounslow/js.js
@@ -15,4 +15,16 @@ fixmystreet.assets.add($.extend(true, {}, fixmystreet.roadworks.layer_planned, {
body: body
}));
+if (fixmystreet.cobrand == 'hounslow') {
+ // We want the cobranded site to always display "Hounslow Highways"
+ // as the destination for reports in the "Public details" section.
+ // This is OK because the cobranded site only shows categories which
+ // Hounslow Highways 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() {};
+}
+
})();