aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/bathnes/js.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-04-02 15:27:34 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-09 11:14:10 +0100
commitf55c261f92ea53d5a36da5d5297394baabd740a4 (patch)
treeef9387fe4726080061c90f2cec4f6e8a864e3c37 /web/cobrands/bathnes/js.js
parent8ab6e6105a967999dbc766d4a3fd150f5fe2c748 (diff)
[UK] Show data from StreetManager.
Diffstat (limited to 'web/cobrands/bathnes/js.js')
-rw-r--r--web/cobrands/bathnes/js.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/cobrands/bathnes/js.js b/web/cobrands/bathnes/js.js
new file mode 100644
index 000000000..f76da5cd5
--- /dev/null
+++ b/web/cobrands/bathnes/js.js
@@ -0,0 +1,11 @@
+fixmystreet.roadworks.config = {
+ tag_top: 'h3',
+ colon: true,
+ text_after: "<p>If you think this issue needs immediate attention you can continue your report below</p>"
+};
+
+fixmystreet.roadworks.filter = function(feature) {
+ var category = $('select#form_category').val(),
+ categories = ['Damage to pavement', 'Damage to road', 'Faded road markings', 'Damaged Railing, manhole, or drain cover'];
+ return OpenLayers.Util.indexOf(categories, category) != -1;
+};