Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix deprecation warning related to :confirm option.

  • Loading branch information...
commit 4fd636582ead0cc1fae806e90bb3818258c480f3 1 parent a859572
Uģis Ozols ugisozols authored
4 app/views/refinery/inquiries/admin/inquiries/_inquiry.html.erb
View
@@ -8,7 +8,9 @@
refinery.inquiries_admin_inquiry_path(inquiry),
:class => "cancel confirm-delete",
:title => t('refinery.inquiries.admin.inquiries.delete'),
- :confirm => t('refinery.admin.delete.message', :title => inquiry.name),
+ :data => {
+ :confirm => t('refinery.admin.delete.message', :title => inquiry.name)
+ },
:method => :delete -%>
<%= link_to refinery_icon_tag('zoom.png'), refinery.inquiries_admin_inquiry_path(inquiry),
4 app/views/refinery/inquiries/admin/inquiries/show.html.erb
View
@@ -20,7 +20,9 @@
refinery.inquiries_admin_inquiry_path(@inquiry),
:class => 'delete_icon no-tooltip confirm-delete',
:title => t('refinery.inquiries.admin.inquiries.delete'),
- :confirm => t('refinery.admin.delete.message', :title => @inquiry.name),
+ :data => {
+ :confirm => t('refinery.admin.delete.message', :title => @inquiry.name)
+ },
:method => :delete %>
</li>
</ul>
Please sign in to comment.
Something went wrong with that request. Please try again.