aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-06-15 11:55:40 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2012-06-15 11:55:40 +0300
commitb1ef3113bfdb48f642ee4185d1d64c02970d6bec (patch)
tree2b3a3df934e6ad9ab5b2c7abb470bf7f82c9a92b /app
parentc715d2cb9362b7d2fa4815b14fa783278f4d5622 (diff)
downloadrefinerycms-blog-b1ef3113bfdb48f642ee4185d1d64c02970d6bec.tar.gz
refinerycms-blog-b1ef3113bfdb48f642ee4185d1d64c02970d6bec.tar.bz2
refinerycms-blog-b1ef3113bfdb48f642ee4185d1d64c02970d6bec.zip
Fix deprecation warnings related to :confirm option.
Diffstat (limited to 'app')
-rw-r--r--app/views/refinery/blog/admin/categories/_category.html.erb4
-rw-r--r--app/views/refinery/blog/admin/posts/_post.html.erb4
2 files changed, 6 insertions, 2 deletions
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)
+ } %>
</span>
</li>
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)
+ } %>
</span>
</li>