aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-09-06 12:52:32 +0100
committerStruan Donald <struan@exo.org.uk>2011-09-06 12:52:32 +0100
commita458ecc2d8126aef282c8493fe1ba1052f7e5a89 (patch)
treeb31c4b8597ffc88719163a5f5631b2a0030f8800 /web/js
parent3ab73a6823bb5ce0b226a9fa96d4a924d9baf996 (diff)
handle submitting of updates when logged in
Diffstat (limited to 'web/js')
-rw-r--r--web/js/fixmystreet.js5
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)