]> 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 8e4410fcee0568d04e2297a178205c60df144454..964f187f9795d7861ffc7ceb6b0c8f3514234e5b 100644 (file)
@@ -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));
 
@@ -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);
   });