X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/56fdf73b659e7722a9a4860b3708cbb1ab885897..e7117dff652fd431a533b29593769f3a95d3729a:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index fdba06e98..68beefeb6 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -1,6 +1,6 @@ //= require_self //= require leaflet.sidebar -//= require leaflet.locate +//= require leaflet.locatecontrol/src/L.Control.Locate //= require leaflet.layers //= require leaflet.key //= require leaflet.note @@ -20,11 +20,9 @@ //= require index/changeset //= require index/query //= require router -//= require querystring +//= require qs/dist/qs $(document).ready(function () { - var querystring = require("querystring-component"); - var loaderTimeout; var map = new L.OSM.Map("map", { @@ -198,7 +196,7 @@ $(document).ready(function () { $(".welcome").addClass("visible"); } - $(".welcome .close-wrap").on("click", function () { + $(".welcome .close").on("click", function () { $(".welcome").removeClass("visible"); $.cookie("_osm_welcome", "hide", { expires: expiry, path: "/" }); }); @@ -264,7 +262,7 @@ $(document).ready(function () { var iframe = $("