aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-03-19 17:18:40 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-03-27 09:38:15 +0000
commit86740bb1c1ee72834e0af5e9900689c1ca7292b9 (patch)
tree95be1a2bfbed0d5564eee5c97f569a1ba37dc65b
parent91d9e7102b7fc94cd899100ef5cd42e027c5beb7 (diff)
[Oxfordshire] correctly display PRoW message
This makes sure that we re-enable the report form if you select a non OCC category after selecting PRoW, and also enables correct hiding and displaying of the message.
-rw-r--r--web/cobrands/oxfordshire/assets.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/cobrands/oxfordshire/assets.js b/web/cobrands/oxfordshire/assets.js
index 28cffc04c..59a6d777d 100644
--- a/web/cobrands/oxfordshire/assets.js
+++ b/web/cobrands/oxfordshire/assets.js
@@ -5,14 +5,16 @@
function check_rights_of_way() {
if (OpenLayers.Util.indexOf(fixmystreet.bodies, 'Oxfordshire County Council') == -1) {
+ $('#occ_prow').remove();
+ disable_form(false);
return;
}
if ($('#form_category').val() == 'Countryside Paths / Public Rights of Way (usually not tarmac)') {
- $('#category_meta').html('<p class="category-message">Please report problems with rights of way using <a href="https://publicrightsofway.oxfordshire.gov.uk/web/standardmap.aspx">this page</a>.</p>');
+ $('#form_category_row').after('<p id="occ_prow" class="category-message">Please report problems with rights of way using <a href="https://publicrightsofway.oxfordshire.gov.uk/web/standardmap.aspx">this page</a>.</p>');
disable_form(true);
} else {
- $('#category_meta').html('');
+ $('#occ_prow').remove();
disable_form(false);
}
}