Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-08-15 10:29:29 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-08-21 00:43:04 +0300
commit0284917c701acfa5d88a98fef641ab35164ed9a8 (patch)
tree0f3e62f7f3a633f43a63a070ddef2e06691df37d /app/views/doorkeeper/authorized_applications
parent80c57bf6d13d6025a9568afb9cca36c279fac593 (diff)
Remove inline JS in links
Changes these to use unobtrusive JS
Diffstat (limited to 'app/views/doorkeeper/authorized_applications')
-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?') }