X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d3d03a31776ed25d2fa38d069e72bd99c0914ed1..712e67ed4a1429309075b484b87a42ca5da6b0a5:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 40ca866c5..3839a18c2 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -18,6 +18,8 @@ $(document).ready(function () { iconLoading: "icon geolocate", strings: { title: I18n.t("javascripts.map.locate.title"), + metersUnit: I18n.t("javascripts.map.locate.metersUnit"), + feetUnit: I18n.t("javascripts.map.locate.feetUnit"), popup: I18n.t("javascripts.map.locate.popup") } }).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() { @@ -125,8 +127,11 @@ $(document).ready(function () { $("#contributorTerms").load(url); }); - $("#read_tou").on("click", function () { - var agreebtn = document.getElementById('agree'); - agreebtn.disabled=!this.checked; + $("#read_ct").on("click", function () { + $("#continue").prop("disabled", !($(this).prop("checked") && $("#read_tou").prop("checked"))); + }); + + $("#read_tou").on("click", function () { + $("#continue").prop("disabled", !($(this).prop("checked") && $("#read_ct").prop("checked"))); }); });