From 2d8215dd28c30d41336b7a1244d4df3d622a7187 Mon Sep 17 00:00:00 2001 From: bmatt Date: Tue, 25 Feb 2020 04:42:55 +0000 Subject: [PATCH] Moved DataTables initialization up under if block to prevent attempt to initialize when table is not drawn. --- ihatemoney/templates/dashboard.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ihatemoney/templates/dashboard.html b/ihatemoney/templates/dashboard.html index 3d0365af..c2d7c6df 100644 --- a/ihatemoney/templates/dashboard.html +++ b/ihatemoney/templates/dashboard.html @@ -32,12 +32,12 @@ {% endfor %} -{% else %} -
{{ _("The Dashboard is currently deactivated.") }}
-{% endif %} +{% else %} +
{{ _("The Dashboard is currently deactivated.") }}
+{% endif %} {% endblock %}