summaryrefslogtreecommitdiff
path: root/app/views/doorkeeper
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-08-15 15:29:29 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-08-21 05:43:04 +0800
commit0284917c701acfa5d88a98fef641ab35164ed9a8 (patch)
tree0f3e62f7f3a633f43a63a070ddef2e06691df37d /app/views/doorkeeper
parent80c57bf6d13d6025a9568afb9cca36c279fac593 (diff)
downloadgitlab-ce-0284917c701acfa5d88a98fef641ab35164ed9a8.tar.gz
Remove inline JS in linksremove-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.haml2
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?') }