diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-15 10:29:29 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-21 00:43:04 +0300 |
commit | 0284917c701acfa5d88a98fef641ab35164ed9a8 (patch) | |
tree | 0f3e62f7f3a633f43a63a070ddef2e06691df37d /app/views/admin/applications | |
parent | 80c57bf6d13d6025a9568afb9cca36c279fac593 (diff) |
Remove inline JS in links
Changes these to use unobtrusive JS
Diffstat (limited to 'app/views/admin/applications')
-rw-r--r-- | app/views/admin/applications/_delete_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/applications/_delete_form.html.haml b/app/views/admin/applications/_delete_form.html.haml index 82781f6716d..86f09bf1cb0 100644 --- a/app/views/admin/applications/_delete_form.html.haml +++ b/app/views/admin/applications/_delete_form.html.haml @@ -1,4 +1,4 @@ - submit_btn_css ||= 'btn btn-link btn-remove btn-sm' = form_tag admin_application_path(application) do %input{ :name => "_method", :type => "hidden", :value => "delete" }/ - = submit_tag 'Destroy', onclick: "return confirm('Are you sure?')", class: submit_btn_css + = submit_tag 'Destroy', class: submit_btn_css, data: { confirm: _('Are you sure?') } |