X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eb7678145a87c1b9e3cd7ff2d3b5dc08132e4b51..b79e4f04b9197e1c1954638db46c9d97597612d4:/app/assets/javascripts/welcome.js?ds=sidebyside 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");