Added data-disable to all button_to to fix double click issue (#923)

This commit is contained in:
Ahmad Farhat
2020-01-22 16:40:37 -05:00
committed by farhatahmad
parent 8a8eee52fe
commit eb965e5c52
10 changed files with 30 additions and 30 deletions

View File

@ -26,7 +26,7 @@
<%= t("modal.delete_room.keep") %>
</button>
<%= button_to "/", method: :delete, id: "delete-confirm", class: "btn btn-danger my-1 btn-del-room" do %>
<%= button_to "/", method: :delete, id: "delete-confirm", class: "btn btn-danger my-1 btn-del-room", "data-disable": "" do %>
<%= t("modal.delete_room.delete") %>
<% end %>