Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GITC-123: fix js error calling the function before defined #9238

Merged
merged 1 commit into from
Jul 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 22 additions & 27 deletions app/kudos/templates/transaction/receive_bulk.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,28 @@
{% endcomment %}
{% load i18n static kudos_extras bundle %}
{% block 'scripts' %}
<script src="{% static "v2/js/pages/kudos_bulk_receive.js" %}"></script>
<script src="{% static "onepager/js/confetti.js" %}"></script>
<script src="{% static 'v2/js/lib/tweenlite.js' %}"></script>
<script src="{% static "v2/js/pages/kudos_details.js" %}"></script>
<script>
document.network = '{{coupon.token.contract.network}}';
document.gas_amount = {{gas_amount}};
$(document).ready(function(){
{% if error %}
_alert('{{error}}', 'danger');
{% endif %}
start_kudos_levitate();
document.suppress_kudos_levitate_hover = true;
})
</script>
<script src="{% static "v2/js/pages/kudos_bulk_receive.js" %}"></script>
<script src="{% static "onepager/js/confetti.js" %}"></script>
<script src="{% static 'v2/js/lib/tweenlite.js' %}"></script>
<script src="{% static "v2/js/pages/kudos_details.js" %}"></script>
<script>
document.network = '{{coupon.token.contract.network}}';
document.gas_amount = {{gas_amount}};
$(document).ready(function(){
{% if error %}
_alert('{{error}}', 'danger');
{% endif %}
start_kudos_levitate();
document.suppress_kudos_levitate_hover = true;
})
</script>
{% if kudos_transfer.receive_txid %}
<script>
setTimeout(function(){
startConfetti();
}, 1000);
</script>
{% endif %}
{% endblock %}
<!-- Main -->
{% block 'main' %}
Expand Down Expand Up @@ -192,18 +199,6 @@ <h3 class="text-center" style="margin: 0px auto;">👇 Redeem It Here 👇</h3>
</div>
</form>
</div>

{% if not kudos_transfer.receive_txid and is_authed %}
<script>
</script>
{% endif %}
{% if kudos_transfer.receive_txid %}
<script>
setTimeout(function(){
startConfetti();
}, 1000);
</script>
{% endif %}
</section>
<style>
#kudos-image {
Expand Down