Moved the JavaScript on the account list template to a separated JavaScript file in the accounting application.

This commit is contained in:
2020-08-07 21:35:03 +08:00
parent 1d9a8a0401
commit d6e68717fd
2 changed files with 30 additions and 8 deletions

View File

@ -29,6 +29,7 @@ First written: 2020/7/1
{% trans "Accounts" context "Accounting" as text %}
{% setvar "title" text %}
{% setvar "use_datatables" True %}
{% static "accounting/js/account-list.js" as file %}{% add_js file %}
{% endblock %}
{% block content %}
@ -79,12 +80,4 @@ First written: 2020/7/1
<p>{{ _("There is currently no data.")|force_escape }}</p>
{% endif %}
<script type="text/javascript">
$(document).ready(function() {
$('#accounts').DataTable({
"ordering": false,
});
});
</script>
{% endblock %}