From ff155f0499fa095427c0ca37dfb8645354861c9b Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 4 Oct 2023 19:58:10 +0300 Subject: [PATCH] put the cost in the house change warning --- files/assets/js/bottom.js | 2 +- files/templates/settings/personal.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index b6f0d0bdf3..c6ef04813e 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -97,7 +97,7 @@ for (const element of setting_selects) { } element.addEventListener('change', () => { if (element.id == "changing-house") { - if (confirm('Are you sure you want to change houses?')) { + if (confirm(`Are you sure you want to change houses?\nIt will cost you ${element.dataset.cost} coins or marseybux!`)) { postToastReload(element,`/settings/personal?${element.name}=${element.value}`); } } diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index ccd2cae73a..85b1fdf008 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -100,7 +100,7 @@

Join a house (cost: {{cost}} coins or marseybux).

{% endif %}
- v.coins + v.marseybux or v.bite %}disabled{% endif %} autocomplete="off" id='house' class="form-control setting_select" form="profile-settings" name="house" data-nonce="{{g.nonce}}" data-reload="1"> {% for entry in HOUSES %}