X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eb7678145a87c1b9e3cd7ff2d3b5dc08132e4b51..80d7fe4cce0b3562a1465b7c278283ef57bb8dcf:/app/assets/javascripts/welcome.js diff --git a/app/assets/javascripts/welcome.js b/app/assets/javascripts/welcome.js index c83d153da..35a1fdc4b 100644 --- a/app/assets/javascripts/welcome.js +++ b/app/assets/javascripts/welcome.js @@ -1,4 +1,4 @@ -$(document).ready(function() { +$(document).ready(function () { var params = OSM.params(); if (params.lat && params.lon) { @@ -15,7 +15,6 @@ $(document).ready(function() { url += OSM.formatHash(params); $(".start-mapping").attr("href", url); - } else { var geoSuccess = function (position) { window.location = "/edit" + OSM.formatHash({ @@ -25,7 +24,7 @@ $(document).ready(function() { }); }; - $(".start-mapping").on("click", function(e) { + $(".start-mapping").on("click", function (e) { e.preventDefault(); $(".start-mapping").addClass("loading");