diff --git a/app/views/aspects/edit.html.haml b/app/views/aspects/edit.html.haml index 0b5c43b6f7667292a4926a3f2a8eb48580e1da33..991d5f7ab149428bf05db52e6645cb2e48726c1e 100644 --- a/app/views/aspects/edit.html.haml +++ b/app/views/aspects/edit.html.haml @@ -20,7 +20,7 @@ %br .bottom_submit_section .left - = button_to t('delete'), @aspect, :method => "delete", :confirm => t('.confirm_remove_aspect'), :class => 'button delete' + = button_to t('delete'), @aspect, :method => "delete", :data => { :confirm => t('.confirm_remove_aspect') }, :class => 'button delete' - if @aspect.contacts_visible = link_to image_tag('icons/padlock-open.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :class => 'open', :title => t('.aspect_list_is_visible')), aspect_toggle_contact_visibility_path(@aspect), :method => :put, :remote => true diff --git a/app/views/conversations/_show.haml b/app/views/conversations/_show.haml index 175e65c54959442ae10999ecacab0e36f1beec49..6586340f55a4db9825dd02d2625227d765d052c9 100644 --- a/app/views/conversations/_show.haml +++ b/app/views/conversations/_show.haml @@ -4,7 +4,7 @@ .conversation_participants .right - = link_to(image_tag('deletelabel.png'), conversation_visibility_path(conversation), :method => 'delete', :confirm => "#{t('.delete')}?", :title => t('.delete')) + = link_to(image_tag('deletelabel.png'), conversation_visibility_path(conversation), :method => 'delete', :data => { :confirm => "#{t('.delete')}?" }, :title => t('.delete')) %h3{ :class => direction_for(conversation.subject) } = conversation.subject diff --git a/app/views/registrations/edit.html.haml b/app/views/registrations/edit.html.haml index a71cd97c7921372552d7df44e5ab3b4e0636806d..adcdf2468571f64391c9ea5ca399d61f832ca0ba 100644 --- a/app/views/registrations/edit.html.haml +++ b/app/views/registrations/edit.html.haml @@ -24,5 +24,5 @@ = f.submit t('.update') %h3 t('.cancel_my_account') %p - = t('.unhappy') #{link_to t('.cancel_my_account'), registration_path(resource_name), :confirm => t('are_you_sure'), :method => :delete}. + = t('.unhappy') #{link_to t('.cancel_my_account'), registration_path(resource_name), :data => { :confirm => t('are_you_sure') }, :method => :delete}. = link_to t('back'), :back diff --git a/app/views/shared/_add_remove_services.haml b/app/views/shared/_add_remove_services.haml index 0e541c40b172cecf2aa06ca731cf1327c6d59220..4c3c975771917dd17148c44710ff5122d577443b 100644 --- a/app/views/shared/_add_remove_services.haml +++ b/app/views/shared/_add_remove_services.haml @@ -10,7 +10,7 @@ %b= service.provider = t('services.index.logged_in_as') %b= service.nickname - = link_to t('services.index.disconnect'), service_path(service), :confirm => t('services.index.really_disconnect', :service => service.provider), :method => :delete + = link_to t('services.index.disconnect'), service_path(service), :data => { :confirm => t('services.index.really_disconnect', :service => service.provider) }, :method => :delete - else = t('services.index.no_services') diff --git a/app/views/tags/_followed_tags_listings.haml b/app/views/tags/_followed_tags_listings.haml index 86693099b8ce55aa32a58b5fde76acdc10e9ee3c..d61837c18fdca021c9d24e34419993a793c24468 100644 --- a/app/views/tags/_followed_tags_listings.haml +++ b/app/views/tags/_followed_tags_listings.haml @@ -13,7 +13,7 @@ - for tg in tags %li.unfollow{:id => "tag-following-#{tg.name}"} .unfollow_icon.hidden - = link_to image_tag("icons/monotone_close_exit_delete.png", :height => 16, :title => t('aspects.index.unfollow_tag', :tag => tg.name)), tag_tag_followings_path(:name => tg.name, :remote => true), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :id => "unfollow_" + tg.name + = link_to image_tag("icons/monotone_close_exit_delete.png", :height => 16, :title => t('aspects.index.unfollow_tag', :tag => tg.name)), tag_tag_followings_path(:name => tg.name, :remote => true), :data => { :confirm => t('are_you_sure') }, :method => :delete, :remote => true, :id => "unfollow_" + tg.name = link_to "##{tg.name}", tag_path(:name => tg.name), :class => "tag_selector" %li = form_for TagFollowing.new do |tg| diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 37cd90f0ac4511af60fe1233d4917ef94d4803d5..390d6fb2faf3887de9be1019a1ee172b2e178a14 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -224,4 +224,4 @@ = f.label :close_account_password, t('.current_password'), :for => :close_account_password = f.password_field :current_password, :id => :close_account_password %p - = f.submit t('.close_account_text'), :confirm => t('are_you_sure_delete_account') + = f.submit t('.close_account_text'), :data => { :confirm => t('are_you_sure_delete_account') }