]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/welcome.js
Simplify close icon for routing panel and fix validation error
[rails.git] / app / assets / javascripts / welcome.js
index aa28e99e9d87f39748254951f99828e67242363a..5ba0d7cd2183e28f3ffcbaa88d5901eefece4531 100644 (file)
@@ -17,13 +17,13 @@ $(document).ready(function() {
     $('.start-mapping').attr('href', url);
 
   } else {
     $('.start-mapping').attr('href', url);
 
   } else {
-    function geoSuccess(position) {
+    var geoSuccess = function (position) {
       window.location = '/edit' + OSM.formatHash({
         zoom: 17,
         lat: position.coords.latitude,
         lon: position.coords.longitude
       });
       window.location = '/edit' + OSM.formatHash({
         zoom: 17,
         lat: position.coords.latitude,
         lon: position.coords.longitude
       });
-    }
+    };
 
     $('.start-mapping').on('click', function(e) {
       e.preventDefault();
 
     $('.start-mapping').on('click', function(e) {
       e.preventDefault();