Skip to content

Firefly III: a personal finances manager

Fix missing JS var.

James Cole3c14cdce4769
diff --git a/public/v1/js/ff/firefly.js b/public/v1/js/ff/firefly.js
index 78e9717efa..c100fdf382 100644
--- a/public/v1/js/ff/firefly.js
+++ b/public/v1/js/ff/firefly.js
@@ -47,7 +47,7 @@ function parseToLocalDates() {
$(function () {
"use strict";
- // configAccounting(currencySymbol);
+ configAccounting(currencySymbol);
// on submit of logout button:
$('.logout-link').click(function (e) {
@@ -165,8 +165,8 @@ function currencySelect(e) {
}
function configAccounting(customCurrency) {
-
-// Settings object that controls default parameters for library methods:
+ console.log('configAccounting');
+ // Settings object that controls default parameters for library methods:
accounting.settings = {
currency: {
symbol: customCurrency, // default currency symbol is '$'
diff --git a/public/v1/js/ff/index.js b/public/v1/js/ff/index.js
index c7bfc189bb..58b280bb15 100644
--- a/public/v1/js/ff/index.js
+++ b/public/v1/js/ff/index.js
@@ -39,8 +39,8 @@ function drawChart() {
columnChart(accountExpenseUrl, 'expense-accounts-chart');
columnChart(accountRevenueUrl, 'revenue-accounts-chart');
getPiggyBanks();
- console.log('Get all boxes');
- getAllBoxes();
+ //console.log('Get all boxes');
+ //getAllBoxes();
function getAllBoxes() {
// get summary.
diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php
index 62daf906a3..f530f44fff 100644
--- a/resources/views/index.blade.php
+++ b/resources/views/index.blade.php
@@ -215,7 +215,7 @@
var piggyInfoUrl = '{{ route('json.fp.piggy-banks') }}';
var drawVerticalLine = '';
{{-- render vertical line with text "today" --}}
- @if($start->lte($today) && $end->gte($today))
+ @if($start->lte($today) && $end->gte($today))
drawVerticalLine = '{{ $today->isoFormat($monthAndDayFormat) }}';
@endif
</script>