From 86740bb1c1ee72834e0af5e9900689c1ca7292b9 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 19 Mar 2019 17:18:40 +0000 Subject: [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. --- web/cobrands/oxfordshire/assets.js | 6 ++++-- 1 file 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('

Please report problems with rights of way using this page.

'); + $('#form_category_row').after('

Please report problems with rights of way using this page.

'); disable_form(true); } else { - $('#category_meta').html(''); + $('#occ_prow').remove(); disable_form(false); } } -- cgit v1.2.3