]> git.openstreetmap.org Git - rails.git/commitdiff
Replace spinners in javascript
authorAnton Khorev <tony29@yandex.ru>
Sat, 29 Oct 2022 15:00:07 +0000 (18:00 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 31 Oct 2022 21:19:13 +0000 (00:19 +0300)
app/assets/images/searching.gif [deleted file]
app/assets/javascripts/osm.js.erb
app/assets/javascripts/user.js

diff --git a/app/assets/images/searching.gif b/app/assets/images/searching.gif
deleted file mode 100644 (file)
index b1451fd..0000000
Binary files a/app/assets/images/searching.gif and /dev/null differ
index 352f5d48c468e07ba282e1fdadc1017db7b97325..89f14caee6545ce00ce5034e676d71c021727546 100644 (file)
@@ -35,8 +35,6 @@ OSM = {
   OPEN_NOTE_MARKER:        <%= image_path("open_note_marker.png").to_json %>,
   CLOSED_NOTE_MARKER:      <%= image_path("closed_note_marker.png").to_json %>,
 
-  SEARCHING:               <%= image_path("searching.gif").to_json %>,
-
   apiUrl: function (object) {
     var apiType = object.type === "note" ? "notes" : object.type;
     var url = "/api/" + OSM.API_VERSION + "/" + apiType + "/" + object.id;
index 8e4410fcee0568d04e2297a178205c60df144454..14da8f300497cc8fd0497616a0ef1d21923b95ae 100644 (file)
@@ -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);
   });