From b1ef3113bfdb48f642ee4185d1d64c02970d6bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Fri, 15 Jun 2012 11:55:40 +0300 Subject: Fix deprecation warnings related to :confirm option. --- app/views/refinery/blog/admin/categories/_category.html.erb | 4 +++- app/views/refinery/blog/admin/posts/_post.html.erb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/refinery/blog/admin/categories/_category.html.erb b/app/views/refinery/blog/admin/categories/_category.html.erb index d31e4e6..24a1b78 100644 --- a/app/views/refinery/blog/admin/categories/_category.html.erb +++ b/app/views/refinery/blog/admin/categories/_category.html.erb @@ -19,6 +19,8 @@ :class => "cancel confirm-delete", :title => t('.delete'), :method => :delete, - :confirm => t('message', :scope => 'refinery.admin.delete', :title => category.title) %> + :data => { + :confirm => t('message', :scope => 'refinery.admin.delete', :title => category.title) + } %> diff --git a/app/views/refinery/blog/admin/posts/_post.html.erb b/app/views/refinery/blog/admin/posts/_post.html.erb index 781595a..eb9cc9d 100644 --- a/app/views/refinery/blog/admin/posts/_post.html.erb +++ b/app/views/refinery/blog/admin/posts/_post.html.erb @@ -29,6 +29,8 @@ :class => "cancel confirm-delete", :title => t('.delete'), :method => :delete, - :confirm => t('message', :scope => 'refinery.admin.delete', :title => post.title) %> + :data => { + :confirm => t('message', :scope => 'refinery.admin.delete', :title => post.title) + } %> -- cgit v1.2.3