keep "are you sure" for easier mass giving of awards

master
Aevann 2023-10-10 20:09:48 +03:00
parent 7759229178
commit c2d002452c
3 changed files with 5 additions and 2 deletions

View File

@ -231,6 +231,9 @@ document.addEventListener("click", function (e) {
if (!element.classList.contains("areyousure")) {
document.querySelectorAll(".areyousure").forEach(i => {
if (element.dataset.bsTarget == "#awardModal" && i.classList.contains('awardbtn'))
return
i.classList.remove("areyousure")
if (i.dataset.oldvalue)

View File

@ -417,7 +417,7 @@ AWARDS = {
"description": "Summons a moving emoji on the post.",
"icon": "fas fa-smile-beam",
"color": "text-yellow",
"price": 200,
"price": 100,
"deflectable": False,
"cosmetic": True,
"ghost": True,

View File

@ -14,7 +14,7 @@
<div class="stackable-container">
{% for emoji in p.emoji_awards_emojis(v, kind, OVER_18_EMOJIS) %}
{% set src = '/e/' + emoji + '.webp' %}
{% set alt = ':#' + emoji + ':' %}
{% set alt = 'emoji-award-' + emoji %}
{% set delay = 'animation-delay-' ~ ((loop.index-1)/4)|int %}
<div class="{{kind}}-award {{delay}}">
<img class="{{delay}}" loading="lazy" alt="{{alt}}" src="{{src}}">