Disable confirmation dialogs
This commit is contained in:
parent
3fba8ce18c
commit
e51b389328
@ -6,10 +6,12 @@
|
|||||||
-# = button_to remove_bot_seat_path(seat) do
|
-# = button_to remove_bot_seat_path(seat) do
|
||||||
- "- Bot"
|
- "- Bot"
|
||||||
- if seat.occupied_by? current_user
|
- 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"
|
- "Leave"
|
||||||
- else
|
- 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"
|
- "Empty"
|
||||||
- else
|
- else
|
||||||
= button_to sit_seat_path(seat) do
|
= button_to sit_seat_path(seat) do
|
||||||
@ -18,7 +20,8 @@
|
|||||||
- "+ Bot"
|
- "+ Bot"
|
||||||
|
|
||||||
- if seat.player
|
- 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"
|
- "Remove Player"
|
||||||
.player{id: "player-#{seat.player.id}", class: @game.controlling_player == seat.player ? "taking-turn" : "",
|
.player{id: "player-#{seat.player.id}", class: @game.controlling_player == seat.player ? "taking-turn" : "",
|
||||||
data: {soft_token: seat.player.soft_token} }
|
data: {soft_token: seat.player.soft_token} }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user