Moved the JavaScript on the account list template to a separated JavaScript file in the accounting application.
This commit is contained in:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user