forked from MarseyWorld/MarseyWorld
keep "are you sure" for easier mass giving of awards
parent
7759229178
commit
c2d002452c
|
@ -231,6 +231,9 @@ document.addEventListener("click", function (e) {
|
||||||
|
|
||||||
if (!element.classList.contains("areyousure")) {
|
if (!element.classList.contains("areyousure")) {
|
||||||
document.querySelectorAll(".areyousure").forEach(i => {
|
document.querySelectorAll(".areyousure").forEach(i => {
|
||||||
|
if (element.dataset.bsTarget == "#awardModal" && i.classList.contains('awardbtn'))
|
||||||
|
return
|
||||||
|
|
||||||
i.classList.remove("areyousure")
|
i.classList.remove("areyousure")
|
||||||
|
|
||||||
if (i.dataset.oldvalue)
|
if (i.dataset.oldvalue)
|
||||||
|
|
|
@ -417,7 +417,7 @@ AWARDS = {
|
||||||
"description": "Summons a moving emoji on the post.",
|
"description": "Summons a moving emoji on the post.",
|
||||||
"icon": "fas fa-smile-beam",
|
"icon": "fas fa-smile-beam",
|
||||||
"color": "text-yellow",
|
"color": "text-yellow",
|
||||||
"price": 200,
|
"price": 100,
|
||||||
"deflectable": False,
|
"deflectable": False,
|
||||||
"cosmetic": True,
|
"cosmetic": True,
|
||||||
"ghost": True,
|
"ghost": True,
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div class="stackable-container">
|
<div class="stackable-container">
|
||||||
{% for emoji in p.emoji_awards_emojis(v, kind, OVER_18_EMOJIS) %}
|
{% for emoji in p.emoji_awards_emojis(v, kind, OVER_18_EMOJIS) %}
|
||||||
{% set src = '/e/' + emoji + '.webp' %}
|
{% set src = '/e/' + emoji + '.webp' %}
|
||||||
{% set alt = ':#' + emoji + ':' %}
|
{% set alt = 'emoji-award-' + emoji %}
|
||||||
{% set delay = 'animation-delay-' ~ ((loop.index-1)/4)|int %}
|
{% set delay = 'animation-delay-' ~ ((loop.index-1)/4)|int %}
|
||||||
<div class="{{kind}}-award {{delay}}">
|
<div class="{{kind}}-award {{delay}}">
|
||||||
<img class="{{delay}}" loading="lazy" alt="{{alt}}" src="{{src}}">
|
<img class="{{delay}}" loading="lazy" alt="{{alt}}" src="{{src}}">
|
||||||
|
|
Loading…
Reference in New Issue