From 9f4e950a7093e2f719e03067abb6581e8d921cd6 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 4 Oct 2020 07:25:30 +0200 Subject: [PATCH] Fix hard coded site ID --- public/v1/js/ff/index.js | 2 +- resources/views/v1/layout/default.twig | 2 +- resources/views/v1/layout/empty.twig | 2 +- resources/views/v1/layout/guest.twig | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/v1/js/ff/index.js b/public/v1/js/ff/index.js index ae25ffe5f3..d6e6c5799a 100644 --- a/public/v1/js/ff/index.js +++ b/public/v1/js/ff/index.js @@ -137,7 +137,7 @@ function getBalanceBox() { $.getJSON('json/box/balance').done(function (data) { if (data.size === 1) { // show balance in "sums", show single entry in list. - for (x in data.sums) { + for (var x in data.sums) { $('#box-balance-sums').html(data.sums[x]); $('#box-balance-list').html(data.incomes[x] + ' + ' + data.expenses[x]); } diff --git a/resources/views/v1/layout/default.twig b/resources/views/v1/layout/default.twig index 7d1c6dec11..3b27cbf23b 100644 --- a/resources/views/v1/layout/default.twig +++ b/resources/views/v1/layout/default.twig @@ -225,7 +225,7 @@ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); - + {% endif %} diff --git a/resources/views/v1/layout/empty.twig b/resources/views/v1/layout/empty.twig index 431e26b842..d90638e5f3 100644 --- a/resources/views/v1/layout/empty.twig +++ b/resources/views/v1/layout/empty.twig @@ -58,7 +58,7 @@ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); - + {% endif %} diff --git a/resources/views/v1/layout/guest.twig b/resources/views/v1/layout/guest.twig index 9e560c4598..8a269a8fc3 100644 --- a/resources/views/v1/layout/guest.twig +++ b/resources/views/v1/layout/guest.twig @@ -73,7 +73,7 @@ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); - + {% endif %}