From a9686cee09afc39b1ae0ad460e3fc314105c3312 Mon Sep 17 00:00:00 2001 From: Victoria Mihell-Hale Date: Wed, 1 Nov 2023 16:33:11 +0000 Subject: [PATCH] Do not re-enable report form for non-NH categories --- web/cobrands/highways/assets.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/cobrands/highways/assets.js b/web/cobrands/highways/assets.js index 7c469fc62ad..06ffe050fc2 100644 --- a/web/cobrands/highways/assets.js +++ b/web/cobrands/highways/assets.js @@ -89,7 +89,11 @@ function _update_category(input, he_flag) { function regenerate_category(he_flag) { if (!fixmystreet.reporting_data) return; - $('.js-reporting-page--next').prop('disabled', false); + if (he_flag) { + // We do not want to reenable the form if it has been disabled for + // a non-NH category + $('.js-reporting-page--next').prop('disabled', false); + } // If we have come from NH site, the server has returned all the categories to show if (window.location.href.indexOf('&he_referral=1') != -1) {