aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-06-15 15:01:05 +0100
committerStruan Donald <struan@exo.org.uk>2012-06-15 15:01:05 +0100
commitae327302c1dddd1a08d80aa715dbd4fc2bb3c7c2 (patch)
tree962e127e18dbc9caedd1d0e49a9ec86aea6266cf /www/js
parent3ee077362751d794cc887b952d02e0c10d20f4d5 (diff)
fix jslint issues and remove unused js files
Diffstat (limited to 'www/js')
-rw-r--r--www/js/map-bing.js2
-rw-r--r--www/js/map-google.js4
-rw-r--r--www/js/southampton.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/www/js/map-bing.js b/www/js/map-bing.js
index 856e4f1..715a8ef 100644
--- a/www/js/map-bing.js
+++ b/www/js/map-bing.js
@@ -17,6 +17,6 @@ $(function(){
Microsoft.Maps.Events.addHandler(map, "viewchangestart", function(e) {
/* Doesn't work */
- if (map.getTargetZoom() < 12) return false;
+ if (map.getTargetZoom() < 12) { return false; }
});
});
diff --git a/www/js/map-google.js b/www/js/map-google.js
index 742b55d..7da21ba 100644
--- a/www/js/map-google.js
+++ b/www/js/map-google.js
@@ -16,7 +16,7 @@ $(function(){
});
google.maps.event.addListener(map, "zoom_changed", function() {
- if (map.getZoom() < 13) map.setZoom(13);
- if (map.getZoom() > 17) map.setZoom(17);
+ if (map.getZoom() < 13) { map.setZoom(13); }
+ if (map.getZoom() > 17) { map.setZoom(17); }
});
});
diff --git a/www/js/southampton.js b/www/js/southampton.js
index 1f3e161..e7af4fc 100644
--- a/www/js/southampton.js
+++ b/www/js/southampton.js
@@ -15,7 +15,7 @@ $(function(){
}
}).blur(function(){
var input = $(this);
- if (input.val() == '' || input.val() == input.attr('placeholder')) {
+ if (input.val() === '' || input.val() == input.attr('placeholder')) {
input.css({ 'color': '#999999' });
input.val(input.attr('placeholder'));
}