]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_roles_helper.rb
Use multiple columns for map controls if they don't fit vertically
[rails.git] / app / helpers / user_roles_helper.rb
index c7516a51c920a068eaad9ede41009824b0118f89..a8bc06b6e699c286eed1ae5a29ddd6953e296403 100644 (file)
@@ -28,7 +28,7 @@ module UserRolesHelper
       svg_icon = tag.source(:srcset => image_path("#{image}.svg"), :type => "image/svg+xml")
       png_icon = image_tag("#{image}.png", :srcset => image_path("#{image}.svg"), :size => "20x20", :border => 0, :alt => alt, :title => title)
       icon = tag.picture(svg_icon + png_icon)
-      icon = link_to(icon, url, :method => :post, :confirm => confirm) if url
+      icon = link_to(icon, url, :method => :post, :data => { :confirm => confirm }) if url
     end
 
     icon