diff options
author | 2019-04-19 14:22:51 +0100 | |
---|---|---|
committer | 2019-04-19 14:22:51 +0100 | |
commit | 6bd4ba5359a8eddd07dddf24bf341eac362a324e (patch) | |
tree | d8233c1976417913cfb306b348c51bf2641b8dec /pydis_site/templates | |
parent | Move JS into files (diff) |
Continued cleanup
Diffstat (limited to 'pydis_site/templates')
-rw-r--r-- | pydis_site/templates/wiki/delete.html | 6 | ||||
-rw-r--r-- | pydis_site/templates/wiki/edit.html | 5 | ||||
-rw-r--r-- | pydis_site/templates/wiki/move.html | 6 |
3 files changed, 10 insertions, 7 deletions
diff --git a/pydis_site/templates/wiki/delete.html b/pydis_site/templates/wiki/delete.html index f4ed9dd7..755e8d7a 100644 --- a/pydis_site/templates/wiki/delete.html +++ b/pydis_site/templates/wiki/delete.html @@ -41,7 +41,7 @@ {% endif %} {% if delete_children %} - <div class="message"> + <div class="message is-danger"> <div class="message-body"> <p> You are deleting an article with children. If you delete this article, then its children will also be deleted. @@ -87,8 +87,4 @@ </form> {% endif %} {% endif %} - - {% addtoblock "js" %} - <script type="text/javascript" src="{% static "js/wiki/delete.js" %}"></script> - {% endaddtoblock %} {% endblock %} diff --git a/pydis_site/templates/wiki/edit.html b/pydis_site/templates/wiki/edit.html index 8472d555..622e98eb 100644 --- a/pydis_site/templates/wiki/edit.html +++ b/pydis_site/templates/wiki/edit.html @@ -100,4 +100,9 @@ <script src="{% static "js/wiki/modal.js" %}" type="text/javascript"></script> <script src="{% static "js/wiki/edit.js" %}" type="text/javascript"></script> + <script type="text/javascript"> + $(document).ready(function() { + $("#id_revision").val('{{ article.current_revision.id }}'); + }); + </script> {% endblock %} 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 %} |