Commit d75eb243781f915076c1204d074d1f82479c1efb

Authored by Dmitriy Zaporozhets
1 parent 0124ae18

Fix more confirm deprecations

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/projects/notes/_note.html.haml
... ... @@ -61,6 +61,6 @@
61 61 %i.icon-paper-clip
62 62 = note.attachment_identifier
63 63 = link_to delete_attachment_project_note_path(@project, note),
64   - title: "Delete this attachment", method: :delete, remote: true, confirm: 'Are you sure you want to remove the attachment?', class: "danger js-note-attachment-delete" do
  64 + title: "Delete this attachment", method: :delete, remote: true, data: { confirm: 'Are you sure you want to remove the attachment?' }, class: "danger js-note-attachment-delete" do
65 65 %i.icon-trash.cred
66 66 .clear
... ...
app/views/users_groups/_users_group.html.haml
... ... @@ -13,7 +13,7 @@
13 13 - if show_controls && can?(current_user, :manage_group, @group) && current_user != user
14 14 = link_to '#', class: "btn-tiny btn js-toggle-button", title: 'Edit access level' do
15 15 %i.icon-edit
16   - = link_to group_users_group_path(@group, member), confirm: remove_user_from_group_message(@group, user), method: :delete, remote: true, class: "btn-tiny btn btn-remove", title: 'Remove user from group' do
  16 + = link_to group_users_group_path(@group, member), data: { confirm: remove_user_from_group_message(@group, user) }, method: :delete, remote: true, class: "btn-tiny btn btn-remove", title: 'Remove user from group' do
17 17 %i.icon-minus.icon-white
18 18  
19 19 .edit-member.hide.js-toggle-content
... ...