aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'phonegap/www/js')
-rw-r--r--phonegap/www/js/fixmystreet.js6
-rw-r--r--phonegap/www/js/mobile.js9
2 files changed, 7 insertions, 8 deletions
diff --git a/phonegap/www/js/fixmystreet.js b/phonegap/www/js/fixmystreet.js
index af4ec2e6f..ce7921488 100644
--- a/phonegap/www/js/fixmystreet.js
+++ b/phonegap/www/js/fixmystreet.js
@@ -310,10 +310,10 @@ $(function(){
//make initial tab active
$('.tab-nav a').first().addClass('active');
$('.tab').first().addClass('open');
-
+
//hide other tabs
$('.tab').not('.open').hide();
-
+
//set up click event
$(".tab-nav").on('click', 'a', function(e){
e.preventDefault();
@@ -422,7 +422,7 @@ $.fn.drawer = function(id, ajax) {
$('.spinner').remove();
});
}
-
+
// Tall drawer - put after .content for scrolling to work okay.
// position over the top of the main .content in precisely the right location
d.insertAfter($content).addClass('content').css({
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; }