From: Anton Khorev Date: Wed, 27 Jul 2022 17:00:22 +0000 (+0300) Subject: Changed close buttons of banner and other leaflet sidebars to Bootstrap X-Git-Tag: live~1620^2~5 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0322ed4295702d5842632af959ecf1ae00fa1983 Changed close buttons of banner and other leaflet sidebars to Bootstrap --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index f0b96f59f..fc7780fca 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -203,7 +203,7 @@ $(document).ready(function () { var bannerExpiry = new Date(); bannerExpiry.setYear(bannerExpiry.getFullYear() + 1); - $("#banner .close-wrap").on("click", function (e) { + $("#banner .btn-close").on("click", function (e) { var cookieId = e.target.id; $("#banner").hide(); e.preventDefault(); diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index e839171ab..3e8e66854 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -19,9 +19,8 @@ L.OSM.key = function (options) { .attr("class", "sidebar_heading") .appendTo($ui) .append( - $("") - .text(I18n.t("javascripts.close")) - .attr("class", "icon close") + $(" <% end %>