aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/www/js/mobile.js
diff options
context:
space:
mode:
Diffstat (limited to 'phonegap/www/js/mobile.js')
-rw-r--r--phonegap/www/js/mobile.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/phonegap/www/js/mobile.js b/phonegap/www/js/mobile.js
index adf5e86cf..e4393aba0 100644
--- a/phonegap/www/js/mobile.js
+++ b/phonegap/www/js/mobile.js
@@ -42,7 +42,7 @@ function location_error( msg ) {
$('#location_error').remove();
return;
}
-
+
alert(msg);
if ( !$('#location_error') ) {
@@ -109,10 +109,9 @@ function lookup_string(q) {
}
function locate() {
- //location_error('');
$("#multiple").remove();
var pc = $('#pc').val();
-
+
if (!pc) {
location_error( "Please enter your location" );
return false;
@@ -183,7 +182,7 @@ function takePhotoFail(message) {
function takePhoto(type) {
navigator.camera.getPicture(takePhotoSuccess, takePhotoFail, { quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: type });
}
-
+
function check_name( name, msg ) {
$('#email_label').hide();
$('#form_email').hide();
@@ -237,7 +236,7 @@ var submit_clicked = null;
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 ( !$('#mapForm').valid() ) { return; }