aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/locate.js9
-rw-r--r--www/js/strings.js6
2 files changed, 8 insertions, 7 deletions
diff --git a/www/js/locate.js b/www/js/locate.js
index b4b674e..a149a6a 100644
--- a/www/js/locate.js
+++ b/www/js/locate.js
@@ -40,7 +40,8 @@ var Locate = ( function() { return {
var that = this;
this.watch_id = navigator.geolocation.watchPosition(
function(location) {
- if ( that.watch_id == undefined ) { console.log( 'no watch id' ); return; }
+ if ( that.watch_id === undefined ) { console.log( 'no watch id' ); return; }
+
if ( minAccuracy && location.coords.accuracy > minAccuracy ) {
that.trigger('locating', location.coords.accuracy);
} else {
@@ -53,7 +54,7 @@ var Locate = ( function() { return {
}
},
function() {
- if ( that.watch_id == undefined ) { return; }
+ if ( that.watch_id === undefined ) { return; }
that.locating = 0;
navigator.geolocation.clearWatch( that.watch_id );
delete that.watch_id;
@@ -78,7 +79,7 @@ var Locate = ( function() { return {
that.trigger('failed', { msg: data.error } );
return;
}
- that.trigger('located', { coordinates: coords, details: data } )
+ that.trigger('located', { coordinates: coords, details: data } );
},
error: function (data, status, errorThrown) {
that.trigger('failed', { msg: FMS.strings.location_check_failed } );
@@ -86,4 +87,4 @@ var Locate = ( function() { return {
} );
}
-}});
+};});
diff --git a/www/js/strings.js b/www/js/strings.js
index dddaeff..eef7a4f 100644
--- a/www/js/strings.js
+++ b/www/js/strings.js
@@ -1,4 +1,4 @@
-;(function (FMS, _) {
+(function (FMS, _) {
_.extend( FMS, {
validationStrings: {
update: 'Please enter a message',
@@ -6,7 +6,7 @@
detail: 'Please enter some details',
name: {
required: 'Please enter your name',
- validName: 'Please enter your full name, councils need this information – if you do not wish your name to be shown on the site, untick the box below'
+ validName: 'Please enter your full name, councils need this information - if you do not wish your name to be shown on the site, untick the box below'
},
category: 'Please choose a category',
rznvy: {
@@ -35,5 +35,5 @@
no_connection: 'No network connection available for submitting your report. Please try again later',
more_details: 'More details'
}
- })
+ });
})(FMS, _);