diff options
author | Struan Donald <struan@exo.org.uk> | 2012-03-15 13:50:34 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-03-15 13:50:34 +0000 |
commit | 4174f60e00c1615b7512f55f53e180426856a749 (patch) | |
tree | 9b46e9514ff72b0a400e0a55c7c1cc89678c00c4 /www/js/mobile.js | |
parent | b6a6c94631b0c714ee5a9e10e72f9b125b53587d (diff) |
make validation work properly
Diffstat (limited to 'www/js/mobile.js')
-rw-r--r-- | www/js/mobile.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js index 73bb10e..55fca3d 100644 --- a/www/js/mobile.js +++ b/www/js/mobile.js @@ -197,6 +197,10 @@ function fileUploadFail() { function postReport(e) { e.preventDefault(); + + // the .stopImmediatePropogation call in invalidHandler should render this + // redundant but it doesn't seem to work so belt and braces :( + if ( !$('#map_form').valid() ) { return; } var params = { service: 'iphone', |