X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/24b138db094e4b5e8d062c5248ee867967dc0fd7..83bb627da67011c67c7bf98b7b5bca38fd248043:/app/assets/javascripts/user.js?ds=sidebyside diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 69cc259f0..377efb315 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -18,7 +18,9 @@ $(document).ready(function () { iconLoading: "icon geolocate", strings: { title: I18n.t("javascripts.map.locate.title"), - popup: I18n.t("javascripts.map.locate.popup") + popup: function (options) { + return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance }); + } } }).addTo(map); @@ -85,8 +87,8 @@ $(document).ready(function () { $("select#user_auth_provider").on("change", updateAuthUID); - $("input#user_image").on("change", function () { - $("#image_action_new").prop("checked", true); + $("input#user_avatar").on("change", function () { + $("#avatar_action_new").prop("checked", true); }); function enableAuth() {