Move modify.js + ban.js => restricted.js

Further in on restricted JS to simplify things. Rather than breaking out
all Javascript stuff into their own granular files, this just includes
all admin actions together in the same file.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-17 15:56:44 -07:00
parent 1a2ac653d7
commit 8ea95a927c
5 changed files with 93 additions and 89 deletions

View File

@@ -17,7 +17,7 @@
<script src="{% static 'board/jquery.js' %}"></script>
<script src="{% static 'board/jsframe.min.js' %}"></script>
<script src="{% static 'board/post.js' %}"></script>
<script src="{% static 'board/ban.js' %}"></script>
<script src="{% static 'board/restricted.js' %}"></script>
{% endblock extrahead %}
{% block footer %}

View File

@@ -13,8 +13,7 @@
<script src="{% static 'board/jsframe.min.js' %}"></script>
<script src="{% static 'board/post.js' %}"></script>
{% if user.is_staff %}
<script src="{% static 'board/ban.js' %}"></script>
<script src="{% static 'board/modify.js' %}"></script>
<script src="{% static 'board/restricted.js' %}"></script>
{% endif %}
{% block extrajs %}{% endblock %}
</head>