mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
Moved DataTables initialization up under if block to prevent attempt to initialize when table is not drawn.
This commit is contained in:
parent
7f8f1f23c4
commit
2d8215dd28
1 changed files with 3 additions and 3 deletions
|
@ -32,12 +32,12 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="alert alert-danger">{{ _("The Dashboard is currently deactivated.") }}</div>
|
||||
{% endif %}
|
||||
<script language="JavaScript">
|
||||
$(document).ready(function() {
|
||||
$('#bill_table').DataTable();
|
||||
})
|
||||
</script>
|
||||
{% else %}
|
||||
<div class="alert alert-danger">{{ _("The Dashboard is currently deactivated.") }}</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue