Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #7131 by expanding the global ajaxSetup instructions.
James Coleb1e08b108412
diff --git a/public/v1/js/ff/firefly.js b/public/v1/js/ff/firefly.jsindex e3765bac4a..a65627d5a2 100644--- a/public/v1/js/ff/firefly.js+++ b/public/v1/js/ff/firefly.js@@ -20,9 +20,18 @@/** global: moment, token, dateRangeMeta,dateRangeConfig, accountingConfig, accounting, currencySymbol, mon_decimal_point, frac_digits, showFullList, showOnlyTop, mon_thousands_sep */+$.ajaxSetup({+ headers: {+ 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),+ 'Content-Type': 'application/json'++ }+});+$(function () {"use strict";+configAccounting(currencySymbol);// on submit of logout button:@@ -37,11 +46,7 @@ $(function () {$('button[type="submit"]').prop('disabled', true);});- $.ajaxSetup({- headers: {- 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')- }- });+// when you click on a currency, this happens:$('.currency-option').on('click', currencySelect);