var position = $("html").attr("dir") === "rtl" ? "topleft" : "topright";
- L.OSM.zoom({position: position})
+ L.OSM.zoom({ position: position })
.addTo(map);
var locate = L.control.locate({
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);
}
if ($("#map").hasClass("set_location")) {
- var marker = L.marker([0, 0], {icon: OSM.getUserIcon()});
+ var marker = L.marker([0, 0], { icon: OSM.getUserIcon() });
if (OSM.home) {
marker.setLatLng([OSM.home.lat, OSM.home.lon]);
$("[data-user]").each(function () {
var user = $(this).data("user");
if (user.lon && user.lat) {
- L.marker([user.lat, user.lon], {icon: OSM.getUserIcon(user.icon)}).addTo(map)
+ L.marker([user.lat, user.lon], { icon: OSM.getUserIcon(user.icon) }).addTo(map)
.bindPopup(user.description);
}
});
$("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() {
$("#contributorTerms").html("<img src='" + OSM.SEARCHING + "' />");
$("#contributorTerms").load(url);
});
+
+ $("#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")));
+ });
});