aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/move.html
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-19 14:22:51 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-19 14:22:51 +0100
commit6bd4ba5359a8eddd07dddf24bf341eac362a324e (patch)
treed8233c1976417913cfb306b348c51bf2641b8dec /pydis_site/templates/wiki/move.html
parentMove JS into files (diff)
Continued cleanup
Diffstat (limited to 'pydis_site/templates/wiki/move.html')
-rw-r--r--pydis_site/templates/wiki/move.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/pydis_site/templates/wiki/move.html b/pydis_site/templates/wiki/move.html
index 1d797e86..6452ffa2 100644
--- a/pydis_site/templates/wiki/move.html
+++ b/pydis_site/templates/wiki/move.html
@@ -59,9 +59,11 @@
</form>
{% addtoblock "js" %}
-
<script type="text/javascript" src="{% static "js/wiki/move.js" %}"></script>
-
+ <script type="text/javascript">
+ $('#id_slug').val('{{ urlpath.slug }}');
+ select_path('{{urlpath.parent.pk}}', '{{urlpath.parent}}');
+ </script>
{% endaddtoblock %}
{% endblock %}