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