ui: Ask confirmation before open hint
This commit is contained in:
parent
bf758e7fe5
commit
b79fe47f00
@ -46,6 +46,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function openHint(hint) {
|
async function openHint(hint) {
|
||||||
|
if (!confirm("Êtes-vous sûr de vouloir utiliser " + (hint.cost * $settings.hintCurrentCoefficient) + " points pour dévoiler cet indice ?")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
hints_submitted[hint.id] = true;
|
hints_submitted[hint.id] = true;
|
||||||
hinterror = "";
|
hinterror = "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user