mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Date range fixes.
This commit is contained in:
@@ -161,28 +161,30 @@
|
||||
<script src="js/bootstrap-tour.min.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var start = "{{Session.get('start').format('d-m-Y')}}";
|
||||
var end = "{{Session.get('end').format('d-m-Y')}}";
|
||||
var titleString = "{{Session.get('start').formatLocalized(monthAndDayFormat)}} - {{Session.get('end').formatLocalized(monthAndDayFormat)}}";
|
||||
var dateRangeURL = "{{route('daterange')}}";
|
||||
|
||||
// date range picker configuration:
|
||||
var dateRangeConfig = {
|
||||
startDate: moment("{{Session.get('start').format('Y-m-d')}}"),
|
||||
endDate: moment("{{Session.get('end').format('Y-m-d')}}"),
|
||||
linkTitle: "{{Session.get('start').formatLocalized(monthAndDayFormat)}} - {{Session.get('end').formatLocalized(monthAndDayFormat)}}",
|
||||
URL: "{{route('daterange')}}",
|
||||
firstDate: moment("{{Session.get('first').format('Y-m-d')}}"),
|
||||
currentMonth: "{{ currentMonthName }}",
|
||||
previousMonth: "{{ previousMonthName }}",
|
||||
nextMonth: "{{ nextMonthName }}",
|
||||
everything: '{{ 'everything'|_ }}',
|
||||
customRangeLabel: '{{ 'customRange'|_ }}',
|
||||
applyLabel: '{{ 'apply'|_ }}',
|
||||
cancelLabel: '{{ 'cancel'|_ }}',
|
||||
fromLabel: '{{ 'from'|_ }}',
|
||||
toLabel: '{{ 'to'|_ }}'
|
||||
};
|
||||
|
||||
var token = "{{csrf_token()}}";
|
||||
var firstDate = moment("{{Session.get('first').format('Y-m-d')}}");
|
||||
var currentMonthName = "{{ currentMonthName }}";
|
||||
var previousMonthName = "{{ previousMonthName }}";
|
||||
var language = "{{ language }}";
|
||||
|
||||
// translations:
|
||||
var everything = '{{ 'everything'|_ }}';
|
||||
var customRangeLabel = '{{ 'customRange'|_ }}';
|
||||
var applyLabel = '{{ 'apply'|_ }}';
|
||||
var cancelLabel = '{{ 'cancel'|_ }}';
|
||||
var fromLabel = '{{ 'from'|_ }}';
|
||||
var toLabel = '{{ 'to'|_ }}';
|
||||
|
||||
var nextMonthName = "{{ nextMonthName }}";
|
||||
var currencyCode = '{{getCurrencyCode() }}';
|
||||
var currencySymbol = '{{getCurrencySymbol()|raw }}';
|
||||
$('#daterange').text(titleString);
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="js/firefly.js"></script>
|
||||
@@ -190,7 +192,7 @@
|
||||
{% block scripts %}{% endblock %}
|
||||
|
||||
{% if env('ANALYTICS_ID','') != '' %}
|
||||
<script>
|
||||
<script>
|
||||
// send pageview
|
||||
(function (i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
@@ -208,14 +210,14 @@
|
||||
|
||||
// send an event if relevant:
|
||||
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and not Session.has('gaEventLabel') %}
|
||||
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}');
|
||||
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}');
|
||||
{% endif %}
|
||||
|
||||
// send event if relevant:
|
||||
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and Session.has('gaEventLabel') %}
|
||||
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}', '{{ Session.get('gaEventLabel') }}');
|
||||
ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}', '{{ Session.get('gaEventLabel') }}');
|
||||
{% endif %}
|
||||
</script>
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user