diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-03 09:03:54 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-03 09:03:54 +0200 |
commit | 447bbb5eb2f1bdc7cba2910437f068df1f235b75 (patch) | |
tree | be04c9f1c6787a73b5b2c2717358a49a5dc1fc75 /app | |
parent | 7da21ab480a310b5f6ebd5557b6c28a71b1cb287 (diff) | |
download | refinerycms-blog-447bbb5eb2f1bdc7cba2910437f068df1f235b75.tar.gz refinerycms-blog-447bbb5eb2f1bdc7cba2910437f068df1f235b75.tar.bz2 refinerycms-blog-447bbb5eb2f1bdc7cba2910437f068df1f235b75.zip |
Use :confirm and :method link_to methods.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/admin/blog/categories/_category.html.erb | 4 | ||||
-rw-r--r-- | app/views/admin/blog/posts/_post.html.erb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/admin/blog/categories/_category.html.erb b/app/views/admin/blog/categories/_category.html.erb index 7997d68..6238c87 100644 --- a/app/views/admin/blog/categories/_category.html.erb +++ b/app/views/admin/blog/categories/_category.html.erb @@ -10,7 +10,7 @@ <%= link_to refinery_icon_tag("delete.png"), admin_blog_category_path(category), :class => "cancel confirm-delete", :title => t('.delete'), - :'data-method' => 'delete', - :'data-confirm' => t('shared.admin.delete.message', :title => category.title) %> + :method => 'delete', + :confirm => t('shared.admin.delete.message', :title => category.title) %> </span> </li> diff --git a/app/views/admin/blog/posts/_post.html.erb b/app/views/admin/blog/posts/_post.html.erb index a768279..2bb80b4 100644 --- a/app/views/admin/blog/posts/_post.html.erb +++ b/app/views/admin/blog/posts/_post.html.erb @@ -12,7 +12,7 @@ <%= link_to refinery_icon_tag("delete.png"), admin_blog_post_path(post), :class => "cancel confirm-delete", :title => t('.delete'), - :'data-method' => 'delete', - :'data-confirm' => t('shared.admin.delete.message', :title => post.title) %> + :method => :delete, + :confirm => t('shared.admin.delete.message', :title => post.title) %> </span> </li> |