From 8bc7793d4233b9836e0d3513583ec76762128dd9 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 29 Oct 2022 18:00:07 +0300 Subject: [PATCH] Replace spinners in javascript --- app/assets/images/searching.gif | Bin 1715 -> 0 bytes app/assets/javascripts/osm.js.erb | 2 -- app/assets/javascripts/user.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 app/assets/images/searching.gif diff --git a/app/assets/images/searching.gif b/app/assets/images/searching.gif deleted file mode 100644 index b1451fd7d434215125d3b5bf2432edeef61dd740..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1715 zcmaLXc~FvR9Ki7xcp*TP%L5frP!SdL*l4WX*;Pd3vOuY{VsyTIyfsDB zP}9t-w6gUswb{`W4NX&Ysa88oyQa2m$~M;~7dCgd{@M5M=b8CD-{<+gL42<7hFuJR z0sP7WR#sN}`ufyrb#!zzjYbzkaRJXkNW~_2I(@y6)6F zBoawsVd2EYL`+OfXJ@Cgv-91%cgxDko;-Q-?%lhOA3u(ajNH3-ue7vudV2c){rgc- zQOnEAGMQ{}aImtna&&am)6;WlX{olhwx_3Oad9y*F|nI8jlGeR{WF)c}$yv z>veMNfsIw;4R5cc_^qF0r1>c$s&~Hp!_{JF_92du|>cRS@uyiBJ@<6y9=;o8-PLQuBi_{7i-T& zwX}UtaEE!@1i>Nbo;@!1eLNIq@0fsug-%XkNg`x_ZZaIn(@o7{MZZnY+@F0o|2P-U zn|KD*-+uJ_y_@d?F(|=}n~3Halw;(9oO<9x&OB}L(V5i9JKbHW8u74yIJ+HnHB6;V zl|a1EcebLO=nS*Ncxt#@QtM*sX141N0auJMB}cfiqmg8*4et{k&vor%5RP*TI9Ju} zjg#lZ)ga`*Rv-WZWPo63Rc>tMB&Xpw9n$XPB98H*htt@Nx2t1R7W9yddU+2y+i&e| zfy0%soCsPy+d-Mdj9qT(7=9K*<9JvlL?vxwN5_B`j)9ix2Qq=pk{so6b5UV}6BP*J z18(#@i&Mds2S`HabB&>vPEf4K#tWpkNU2T1HqLIc0U;6&(GJ6r;X}ia>*FKgx{=AL zFunHXtn0t#9 z(-dm&BD>Zvv&DhewK&@W_KeqA>@s0T+rqY?~Mf}t&dIN`^sRyJ4{@FJ)< zhEr7#oro?$G;Ds}rV%)+w%0wP;p%!ryt{6&Hy@vCeV_~RsqBbb+RaC2v#3sTMHrWq zmXyH)uu!L*+&mJs=wt>N4?9(XCrisKYVc=jYNcgoVW-s@hK_1uRP&S0V7JBPTsL|* zc(usfqOU(!Gvqih*iAb*3_7SCX%1_7UpSGgPL(m~PG1}Anj+&29Dmfhgz>EtJ$cjI zi*DR;?DC*kihX$KVFl$D8WK1y6M8*;@BNtiblIL1rZ}30O-)M=OU!~QybY9voU`8Rr6wb18+%acBta4D52{taYF{a(e?kn69V@*6_GkH_5FytrzFz zkAG(UbnQlKQLky5ACtYl!|?l&n&pZOBc)(xhn(LU=S=Q+&>W}uQ%THgiC|?(Od#o0 zW*O#XWF)QkyBm!$M_}$QED{z=Vqwq<$kEW0BSZop3x#6&h&A~tAtm-i3BR;dP;uHs zXqQ?nJPQ>zD$In8T2YIr-Bjqwu%iU`h)m2(t@p4rBht~aV0GDqG&B2$FPQ(_yCG@w zV`w(Fzb*tx!?_jLOXn5bdaa}$t)aW_*n7(z+!pL6-ymW%j?kf^H3TU z$ze&!>G)&m8DWZSSW1FQNF@OY#_2BEZ)pXsB2}EOa-y=3a5z#>Sp~JSWWym4INzfd sYWGz@dpnK6?1QLaAggrhN2Kk4_kbtE*L_XocI3j}PDGXMYp 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); }); -- 2.39.5