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/doorkeeper | |
parent | 80c57bf6d13d6025a9568afb9cca36c279fac593 (diff) |
Remove inline JS in links
Changes these to use unobtrusive JS
Diffstat (limited to 'app/views/doorkeeper')
-rw-r--r-- | app/views/doorkeeper/authorized_applications/_delete_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/doorkeeper/authorized_applications/_delete_form.html.haml b/app/views/doorkeeper/authorized_applications/_delete_form.html.haml index 69cc510e9c1..9bc5e2ee42f 100644 --- a/app/views/doorkeeper/authorized_applications/_delete_form.html.haml +++ b/app/views/doorkeeper/authorized_applications/_delete_form.html.haml @@ -5,4 +5,4 @@ = form_tag path do %input{ :name => "_method", :type => "hidden", :value => "delete" }/ - = submit_tag _('Revoke'), onclick: "return confirm('#{_('Are you sure?')}')", class: 'btn btn-remove btn-sm' + = submit_tag _('Revoke'), class: 'btn btn-remove btn-sm', data: { confirm: _('Are you sure?') } |