]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Use Bootstrap highlight class in note tables
[rails.git] / app / assets / javascripts / user.js
index 377efb315b290eaf48a1c186f44aa648b56fe153..964f187f9795d7861ffc7ceb6b0c8f3514234e5b 100644 (file)
@@ -1,4 +1,4 @@
-//= require leaflet.locate
+//= require leaflet.locatecontrol/src/L.Control.Locate
 
 $(document).ready(function () {
   if ($("#map").length) {
@@ -54,7 +54,7 @@ $(document).ready(function () {
               precision = OSM.zoomPrecision(zoom),
               location = e.latlng.wrap();
 
-          $("#homerow").removeClass();
+          $("#home_message").hide();
           $("#home_lat").val(location.lat.toFixed(precision));
           $("#home_lon").val(location.lng.toFixed(precision));
 
@@ -88,7 +88,7 @@ $(document).ready(function () {
   $("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() {
@@ -123,7 +123,7 @@ $(document).ready(function () {
   $("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);
   });