Commit 7172a22fd5aad2c2b436b71e25dfd9db52ab3aaf
1 parent
cab5c165
Exists in
master
and in
1 other branch
Confirm actions on problems index page
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
app/views/problems/_table.html.haml
@@ -48,9 +48,9 @@ | @@ -48,9 +48,9 @@ | ||
48 | = paginate problems | 48 | = paginate problems |
49 | .tab-bar | 49 | .tab-bar |
50 | %ul | 50 | %ul |
51 | - %li= submit_tag 'Merge', :id => 'merge_problems', :class => 'button', 'data-action' => merge_several_problems_path | ||
52 | - %li= submit_tag 'Unmerge', :id => 'unmerge_problems', :class => 'button', 'data-action' => unmerge_several_problems_path | ||
53 | - %li= submit_tag 'Resolve', :id => 'resolve_problems', :class => 'button', 'data-action' => resolve_several_problems_path | ||
54 | - %li= submit_tag 'Unresolve', :id => 'unresolve_problems', :class => 'button', 'data-action' => unresolve_several_problems_path | ||
55 | - %li= submit_tag 'Delete', :id => 'delete_problems', :class => 'button', 'data-action' => destroy_several_problems_path | 51 | + %li= submit_tag 'Merge', :id => 'merge_problems', :class => 'button', 'data-action' => merge_several_problems_path, :data => { :confirm => problem_confirm } |
52 | + %li= submit_tag 'Unmerge', :id => 'unmerge_problems', :class => 'button', 'data-action' => unmerge_several_problems_path, :data => { :confirm => problem_confirm } | ||
53 | + %li= submit_tag 'Resolve', :id => 'resolve_problems', :class => 'button', 'data-action' => resolve_several_problems_path, :data => { :confirm => problem_confirm } | ||
54 | + %li= submit_tag 'Unresolve', :id => 'unresolve_problems', :class => 'button', 'data-action' => unresolve_several_problems_path, :data => { :confirm => problem_confirm } | ||
55 | + %li= submit_tag 'Delete', :id => 'delete_problems', :class => 'button', 'data-action' => destroy_several_problems_path, :data => { :confirm => problem_confirm } | ||
56 | 56 |