diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-26 17:23:01 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-26 17:55:46 +0100 |
commit | 8311a96be0d6e890c94e57764cac8f467d56d061 (patch) | |
tree | e7061514695f291e1b77e4d8ed875383ecb54b2e | |
parent | 1c7582884b0339130cb9075d7912c19bba23d86b (diff) |
a few more preventDefaults
-rw-r--r-- | www/js/views/around.js | 3 | ||||
-rw-r--r-- | www/js/views/details.js | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js index 723a9ca..ae87d0b 100644 --- a/www/js/views/around.js +++ b/www/js/views/around.js @@ -217,7 +217,8 @@ $('#reposition').hide(); }, - onClickReport: function() { + onClickReport: function(e) { + e.preventDefault(); var position = this.getCrossHairPosition(); if ( FMS.isOffline ) { diff --git a/www/js/views/details.js b/www/js/views/details.js index 5eb6b85..4c6d96b 100644 --- a/www/js/views/details.js +++ b/www/js/views/details.js @@ -39,12 +39,14 @@ detail.height( contentHeight - top ); }, - onClickButtonPrev: function() { + onClickButtonPrev: function(e) { + e.preventDefault(); this.updateCurrentReport(); this.navigate( this.prev, true ); }, - onClickButtonNext: function() { + onClickButtonNext: function(e) { + e.preventDefault(); this.clearValidationErrors(); var valid = 1; |