mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-22 12:04:00 +00:00
This commit is contained in:
@@ -107,7 +107,6 @@ class JavascriptController extends Controller
|
|||||||
$lang = $pref->data;
|
$lang = $pref->data;
|
||||||
$dateRange = $this->getDateRangeConfig();
|
$dateRange = $this->getDateRangeConfig();
|
||||||
$uid = substr(hash('sha256', sprintf('%s-%s-%s', (string)config('app.key'), auth()->user()->id, auth()->user()->email)), 0, 12);
|
$uid = substr(hash('sha256', sprintf('%s-%s-%s', (string)config('app.key'), auth()->user()->id, auth()->user()->email)), 0, 12);
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'currencyCode' => $currency->code,
|
'currencyCode' => $currency->code,
|
||||||
'currencySymbol' => $currency->symbol,
|
'currencySymbol' => $currency->symbol,
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
// date ranges
|
// date ranges
|
||||||
var ranges = {};
|
var ranges = {};
|
||||||
{% for title, range in dateRangeConfig.ranges %}
|
{% for title, range in dateRangeConfig.ranges %}
|
||||||
ranges["{{ title }}"] = [moment("{{ range[0].format('Y-m-d') }}"), moment("{{ range[1].format('Y-m-d') }}")];
|
ranges["{{ title|escape('js') }}"] = [moment("{{ range[0].format('Y-m-d') }}"), moment("{{ range[1].format('Y-m-d') }}")];
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
// date range meta configuration
|
// date range meta configuration
|
||||||
var dateRangeMeta = {
|
var dateRangeMeta = {
|
||||||
title: "{{ dateRangeTitle }}",
|
title: "{{ dateRangeTitle|escape('js') }}",
|
||||||
url: "{{ route('daterange') }}",
|
url: "{{ route('daterange') }}",
|
||||||
labels: {
|
labels: {
|
||||||
apply: "{{ 'apply'|_ }}",
|
apply: "{{ 'apply'|_ }}",
|
||||||
|
Reference in New Issue
Block a user