bugfix quest_homepage javascript
This commit is contained in:
parent
1586331f78
commit
75f5384723
|
@ -10,18 +10,11 @@
|
|||
</script>
|
||||
<script type="text/javascript" src="{{ static('quest.js') }}"></script>
|
||||
<script>window.onload = load;</script>
|
||||
<!-- We only want the message event on this page, others will error. Hacky solution, but it will do for now. -->
|
||||
{% endblock %}
|
||||
{% block header %}
|
||||
{% if request.user == quest.owner %}
|
||||
<span><a href="{{ url('quest:edit_quest', args=[quest_id, page_num]) }}">Edit Quest</a></span>
|
||||
<script>
|
||||
const quest_id = {{ quest.id }};
|
||||
const page_num = '{{ page_num }}';
|
||||
const SCRIPT_NAME = '{{ request.META["SCRIPT_NAME"] }}';
|
||||
const anon_name = '{{ quest.anon_name }}';
|
||||
</script>
|
||||
<script type="text/javascript" src="{{ static('quest.js') }}"></script>
|
||||
<script>window.onload = load;</script>
|
||||
{% endif %}
|
||||
<span>
|
||||
<select onChange="window.location.href=this.value">
|
||||
|
|
Loading…
Reference in New Issue
Block a user