forked from rDrama/rDrama
Re-enable wager after finishing up
parent
584a7fb9ed
commit
1a8c811faa
|
@ -1,11 +1,11 @@
|
|||
// Shared
|
||||
function updatePlayerCoins(updated) {
|
||||
if (updated.coins) {
|
||||
document.getElementById('user-coins-amount').innerText = updated.coins;
|
||||
document.getElementById("user-coins-amount").innerText = updated.coins;
|
||||
}
|
||||
|
||||
if (updated.procoins) {
|
||||
document.getElementById('user-bux-amount').innerText = updated.procoins;
|
||||
document.getElementById("user-bux-amount").innerText = updated.procoins;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -212,9 +212,7 @@ function buildBlackjackAction(id, method, title, fullWidth = false) {
|
|||
return `
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-${
|
||||
fullWidth ? "primary" : "secondary"
|
||||
} lottery-page--action"
|
||||
class="btn btn-${fullWidth ? "primary" : "secondary"} lottery-page--action"
|
||||
id="${id}"
|
||||
onclick="${method}()"
|
||||
style="${fullWidth ? "width: 100%;" : ""}"
|
||||
|
@ -261,6 +259,7 @@ function updateBlackjackActions(state) {
|
|||
} else {
|
||||
// Game is over, deal a new game.
|
||||
document.getElementById("casinoBlackjackWager").style.display = "flex";
|
||||
document.getElementById("casinoBlackjackBet").disabled = false;
|
||||
|
||||
const deal = buildBlackjackAction(
|
||||
"casinoBlackjackDeal",
|
||||
|
|
Loading…
Reference in New Issue