-//= require leaflet.locate
+//= require leaflet.locatecontrol/src/L.Control.Locate
$(document).ready(function () {
if ($("#map").length) {
$("select#user_auth_provider").on("change", updateAuthUID);
$("input#user_avatar").on("change", function () {
- $("#avatar_action_new").prop("checked", true);
+ $("#user_avatar_action_new").prop("checked", true);
});
function enableAuth() {
$("input[name=legale]").change(function () {
var url = $(this).data("url");
- $("#contributorTerms").html("<img src='" + OSM.SEARCHING + "' />");
+ $("#contributorTerms").html("<div class='spinner-border' role='status'><span class='visually-hidden'>" + I18n.t("browse.start_rjs.loading") + "</span></div>");
$("#contributorTerms").load(url);
});