aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index adb935708..cee8271e7 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -458,6 +458,11 @@ $.extend(fixmystreet.set_up, {
$(".js-hide-if-private-category").show();
$(".js-hide-if-public-category").hide();
}
+ if (data && data.allow_anonymous) {
+ $('.js-show-if-anonymous').removeClass('hidden-js');
+ } else {
+ $('.js-show-if-anonymous').addClass('hidden-js');
+ }
if (fixmystreet.message_controller && data && data.disable_form && data.disable_form.questions) {
$.each(data.disable_form.questions, function(_, question) {