forked from fixin.me/fixin.me
Disallow using onclick: action with confirm:
This commit is contained in:
@@ -4,9 +4,8 @@
|
||||
request.referer.present? ? :back : root_url %>
|
||||
</div>
|
||||
<div class="right">
|
||||
<%# TODO: make confirm dialog work %>
|
||||
<%= image_button_to t(".delete"), "account-remove-outline", user_registration_path,
|
||||
class: "dangerous", method: :delete, confirm: t(".confirm_delete") %>
|
||||
class: "dangerous", method: :delete, onclick: {confirm: t(".confirm_delete")} %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user