Disable confirmation dialogs
This commit is contained in:
parent
c237a03316
commit
5563194cac
@ -6,10 +6,12 @@
|
||||
-# = button_to remove_bot_seat_path(seat) do
|
||||
- "- Bot"
|
||||
- if seat.occupied_by? current_user
|
||||
= button_to stand_seat_path(seat), :data => { :confirm => 'Are you sure you want to leave this seat?' } do
|
||||
-# = button_to stand_seat_path(seat), :data => { :confirm => 'Are you sure you want to leave this seat?' } do
|
||||
= button_to stand_seat_path(seat) do
|
||||
- "Leave"
|
||||
- else
|
||||
= button_to empty_seat_path(seat), :data => { :confirm => 'Are you sure you want to empty this seat?' } do
|
||||
-# = button_to empty_seat_path(seat), :data => { :confirm => 'Are you sure you want to empty this seat?' } do
|
||||
= button_to empty_seat_path(seat) do
|
||||
- "Empty"
|
||||
- else
|
||||
= button_to sit_seat_path(seat) do
|
||||
@ -18,7 +20,8 @@
|
||||
- "+ Bot"
|
||||
|
||||
- if seat.player
|
||||
= button_to remove_player_seat_path(seat), :data => { :confirm => 'Are you sure you want to remove this player?' } do
|
||||
-# = button_to remove_player_seat_path(seat), :data => { :confirm => 'Are you sure you want to remove this player?' } do
|
||||
= button_to remove_player_seat_path(seat) do
|
||||
- "Remove Player"
|
||||
.player{id: "player-#{seat.player.id}", class: @game.controlling_player == seat.player ? "taking-turn" : "",
|
||||
data: {soft_token: seat.player.soft_token} }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user