From: Anton Khorev Date: Sat, 29 Oct 2022 15:00:07 +0000 (+0300) Subject: Replace spinners in javascript X-Git-Tag: live~1483^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8bc7793d4233b9836e0d3513583ec76762128dd9 Replace spinners in javascript --- diff --git a/app/assets/images/searching.gif b/app/assets/images/searching.gif deleted file mode 100644 index b1451fd7d..000000000 Binary files a/app/assets/images/searching.gif and /dev/null differ diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 352f5d48c..89f14caee 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -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; diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 8e4410fce..14da8f300 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -123,7 +123,7 @@ $(document).ready(function () { $("input[name=legale]").change(function () { var url = $(this).data("url"); - $("#contributorTerms").html(""); + $("#contributorTerms").html("
" + I18n.t("browse.start_rjs.loading") + "
"); $("#contributorTerms").load(url); });