diff options
author | Struan Donald <struan@exo.org.uk> | 2011-09-06 12:52:32 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-09-06 12:52:32 +0100 |
commit | a458ecc2d8126aef282c8493fe1ba1052f7e5a89 (patch) | |
tree | b31c4b8597ffc88719163a5f5631b2a0030f8800 /web/js | |
parent | 3ab73a6823bb5ce0b226a9fa96d4a924d9baf996 (diff) |
handle submitting of updates when logged in
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/fixmystreet.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index a9ada1fd5..c5800e5a2 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -75,7 +75,7 @@ $(function(){ } form.submit(); - } + }, }); /* set correct required status depending on what we submit */ @@ -94,6 +94,9 @@ $(function(){ $('#form_name').addClass('required'); } ); + $('#update_post').click( function(e) { + $('#form_name').addClass('required').removeClass('valid'); + } ); $('#email_alert').click(function(e) { if (!$('#email_alert_box').length) |