diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-04 14:39:19 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-04 14:39:19 +0100 |
commit | 96bb52d449517b1018841e56e6008dedd03e6f3b (patch) | |
tree | ffa12f989a8b2cbe5d99a09107ad019a5a3be189 /web | |
parent | b191bd1e83ad0ca152afc3a1c6c7823d9f4e683c (diff) |
[Oxfordshire] Only run PROW code in Oxfordshire.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/oxfordshire/assets.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/cobrands/oxfordshire/assets.js b/web/cobrands/oxfordshire/assets.js index 8858ee66e..46357b061 100644 --- a/web/cobrands/oxfordshire/assets.js +++ b/web/cobrands/oxfordshire/assets.js @@ -5,7 +5,11 @@ } function check_rights_of_way() { - if (OpenLayers.Util.indexOf(fixmystreet.bodies, 'Oxfordshire County Council') > -1 && $('#form_category').val() == 'Countryside Paths / Public Rights of Way (usually not tarmac)') { + if (OpenLayers.Util.indexOf(fixmystreet.bodies, 'Oxfordshire County Council') == -1) { + 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>'); disable_form(true); } else { |