aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/fixmystreet.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-07-10 15:28:54 +0100
committerMatthew Somerville <matthew@mysociety.org>2014-07-10 17:23:09 +0100
commit5aab29046bbc602bb63a647f61f5b9fd4fe137cd (patch)
treee1b54449b7a94ef777702e4d0b800a88cf308e00 /web/js/fixmystreet.js
parent49cb1e91e0cf01e27843f4c8e22731b7d28c049e (diff)
Add fixmystreet.com reporting form A/B tests.
Testing two things: * Putting the email box above the Yes/No, or repeating it inside. * Showing the contents of the Yes/No sections at first, or not.
Diffstat (limited to 'web/js/fixmystreet.js')
-rw-r--r--web/js/fixmystreet.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index 7d75c8b65..158ba8bb4 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -104,6 +104,8 @@ $(function(){
$('#form_first_name').removeClass();
$('#form_last_name').removeClass();
$('#form_fms_extra_title').removeClass();
+ $('#form_email_y').addClass('required');
+ $('#form_email_n').removeClass();
} );
$('#submit_register').click( function(e) {
@@ -115,6 +117,8 @@ $(function(){
$('#form_first_name').addClass('required');
$('#form_last_name').addClass('required');
$('#form_fms_extra_title').addClass('required');
+ $('#form_email_y').removeClass();
+ $('#form_email_n').addClass('required');
} );
$('#problem_submit > input[type="submit"]').click( function(e) {