aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-13 13:20:11 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-13 13:25:03 +0000
commit90ba1eec155c8b785b52a842fb8157aacf53d555 (patch)
tree110f1aff075ceb39e508eb4b74559e7e80b6929a /web
parent06c0c23a9de9fb1c3d57daaa4d9358ffd143a5d5 (diff)
Allow anonymous reporting on per-category basis.
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) {