Commit d75eb243781f915076c1204d074d1f82479c1efb
1 parent
0124ae18
Exists in
master
and in
4 other branches
Fix more confirm deprecations
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/projects/notes/_note.html.haml
@@ -61,6 +61,6 @@ | @@ -61,6 +61,6 @@ | ||
61 | %i.icon-paper-clip | 61 | %i.icon-paper-clip |
62 | = note.attachment_identifier | 62 | = note.attachment_identifier |
63 | = link_to delete_attachment_project_note_path(@project, note), | 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 | %i.icon-trash.cred | 65 | %i.icon-trash.cred |
66 | .clear | 66 | .clear |
app/views/users_groups/_users_group.html.haml
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | - if show_controls && can?(current_user, :manage_group, @group) && current_user != user | 13 | - if show_controls && can?(current_user, :manage_group, @group) && current_user != user |
14 | = link_to '#', class: "btn-tiny btn js-toggle-button", title: 'Edit access level' do | 14 | = link_to '#', class: "btn-tiny btn js-toggle-button", title: 'Edit access level' do |
15 | %i.icon-edit | 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 | %i.icon-minus.icon-white | 17 | %i.icon-minus.icon-white |
18 | 18 | ||
19 | .edit-member.hide.js-toggle-content | 19 | .edit-member.hide.js-toggle-content |