X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/587a1b07545027382041aa41fb74a8445d3fe90c..c8e21c409c9bec446f0caa2526d5b07861bb3299:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index b9518f10d..3bdb35470 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -1,4 +1,4 @@ -//= require leaflet.locate +//= require leaflet.locatecontrol/src/L.Control.Locate $(document).ready(function () { if ($("#map").length) { @@ -19,7 +19,7 @@ $(document).ready(function () { strings: { title: I18n.t("javascripts.map.locate.title"), popup: function (options) { - return I18n.t("javascripts.map.locate." + options.unit + "Popup", :count => options.distance); + return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance }); } } }).addTo(map);