aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/assets.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js
index f68ad6caf..1d2bc3206 100644
--- a/web/cobrands/fixmystreet/assets.js
+++ b/web/cobrands/fixmystreet/assets.js
@@ -936,11 +936,16 @@ fixmystreet.message_controller = (function() {
// This shows the reporting form
function enable_report_form() {
$(".js-hide-if-invalid-category").show();
+ $(".js-hide-if-invalid-category_extras").show();
}
// This hides the reporting form, apart from the category selection
- function disable_report_form() {
+ // And perhaps the category_extras unless asked not to
+ function disable_report_form(keep_category_extras) {
$(".js-hide-if-invalid-category").hide();
+ if (!keep_category_extras) {
+ $(".js-hide-if-invalid-category_extras").hide();
+ }
}
// This hides the responsibility message, and (unless a
@@ -1028,7 +1033,7 @@ fixmystreet.message_controller = (function() {
} else {
$msg.insertBefore('#js-post-category-messages');
}
- disable_report_form();
+ disable_report_form(stopper.keep_category_extras);
});
return {