diff options
Diffstat (limited to 'phonegap/www/js/fixmystreet.js')
-rw-r--r-- | phonegap/www/js/fixmystreet.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phonegap/www/js/fixmystreet.js b/phonegap/www/js/fixmystreet.js index ac9b6e495..af4ec2e6f 100644 --- a/phonegap/www/js/fixmystreet.js +++ b/phonegap/www/js/fixmystreet.js @@ -218,7 +218,10 @@ $(function(){ $('input[type=submit]', form).prop("disabled", true); } - form.submit(); + // this needs to be disabled otherwise it submits the form normally rather than + // over AJAX. This comment is to make this more likely to happen when updating + // this code. + //form.submit(); }, // make sure we can see the error message when we focus on invalid elements showErrors: function( errorMap, errorList ) { |