forked from rDrama/rDrama
fsdfds
parent
eb53748480
commit
5dbcf1009e
|
@ -23,6 +23,7 @@
|
|||
scoretext.textContent = score + 1;
|
||||
post('/bet/' + cid);
|
||||
document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - 200;
|
||||
document.getElementById("span-{{c.id}}").classList.add('bet_voted')
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -433,7 +434,7 @@
|
|||
{% endfor %}
|
||||
|
||||
{% for c in p.bet_options %}
|
||||
<span {% if c.poll_voted(v) %}class="bet_voted"{% endif %}><input {% if c.poll_voted(v) %}checked{% endif %} class="bet" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %} type="radio" id="{{c.id}}" onchange="bet_vote('{{c.id}}')"></span>
|
||||
<span id="span-{{c.id}}" {% if c.poll_voted(v) %}class="bet_voted"{% endif %}><input {% if c.poll_voted(v) %}checked{% endif %} class="bet" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %} type="radio" id="{{c.id}}" onchange="bet_vote('{{c.id}}')"></span>
|
||||
<label for="{{c.id}}">{{c.body_html | safe}} - <a href="/votes?link=t3_{{c.id}}"><span id="bet-{{c.id}}">{{c.upvotes}}</span> bets</a>{% if not p.total_bet_voted(v) %} (cost of entry: 200 coins){% endif %}</label><br>
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue