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 %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% else %}
|
|
||||||
<div class="alert alert-danger">{{ _("The Dashboard is currently deactivated.") }}</div>
|
|
||||||
{% endif %}
|
|
||||||
<script language="JavaScript">
|
<script language="JavaScript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#bill_table').DataTable();
|
$('#bill_table').DataTable();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
{% else %}
|
||||||
|
<div class="alert alert-danger">{{ _("The Dashboard is currently deactivated.") }}</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue