Commit e4ba2b7a5045231293dd5cd0b4cda7f2fa96b573
1 parent
fe21a239
Exists in
master
and in
1 other branch
use data confirm
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/apps/show.html.haml
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | = link_to t('.all_errs'), app_path(app, :all_errs => true), :class => 'button' |
| 21 | 21 | |
| 22 | 22 | - if current_user.watching?(app) |
| 23 | - = link_to t('.unwatch'), app_watcher_path({:app_id => app, :id => current_user.id}), :method => :delete, :class => 'button', :confirm => t('.are_you_sure') | |
| 23 | + = link_to t('.unwatch'), app_watcher_path({app_id: app, id: current_user.id}), method: :delete, class: 'button', data: {confirm: t('.are_you_sure')} | |
| 24 | 24 | %h3#watchers_toggle |
| 25 | 25 | =t('.watchers') |
| 26 | 26 | %span.click_span=t('.show_hide') | ... | ... |