]> git.openstreetmap.org Git - rails.git/commitdiff
Changed feature close buttons to Bootstrap
authorAnton Khorev <tony29@yandex.ru>
Wed, 27 Jul 2022 18:02:16 +0000 (21:02 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 27 Jul 2022 18:02:16 +0000 (21:02 +0300)
app/assets/javascripts/index/browse.js
app/views/application/_sidebar_header.html.erb

index 1140515f5629b93ebd8b04079b806d69493fd5cb..8ef859d855b96650d0a579b49cc7693d6922f8a2 100644 (file)
@@ -50,10 +50,11 @@ OSM.initializeBrowse = function (map) {
     $("#browse_status").html(
       $("<div>")
         .append(
+          $("<button type='button' class='btn-close float-end mt-1'>")
+            .click(cancel),
           $("<h2>")
             .text(I18n.t("browse.start_rjs.load_data"))
-            .prepend($("<span class='icon close'></span>").click(cancel)))
-        .append(
+            .prepend(),
           $("<div>")
             .append(
               $("<p class='alert alert-warning clearfix'></p>")
index da1f6bf45644e1d45352ca17e6ff6f789e2932f4..83b1ae1c5415c9a3ff22ccb7ad3472f311c68007 100644 (file)
@@ -4,7 +4,7 @@
   </div>
   <div>
     <a class="geolink" href="<%= root_path %>">
-      <span class="icon close"></span>
+      <button type="button" class="btn-close float-end mt-1"></button>
     </a>
   </div>
 </div>