Skip to content

Commit

Permalink
Do not re-enable report form for non-NH categories
Browse files Browse the repository at this point in the history
  • Loading branch information
nephila-nacrea committed Nov 8, 2023
1 parent e52a155 commit a9686ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/cobrands/highways/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a9686ce

Please sign in to comment.