ui: Ask confirmation before open hint
This commit is contained in:
parent
bf758e7fe5
commit
b79fe47f00
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@
|
|||
}
|
||||
|
||||
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;
|
||||
hinterror = "";
|
||||
|
||||
|
|
Reference in a new issue