This commit is contained in:
James Cole
2016-06-11 07:38:30 +02:00
parent 307e6a2337
commit ec18165698
4 changed files with 71 additions and 31 deletions

View File

@@ -167,20 +167,21 @@
// date range picker configuration:
var dateRangeConfig = {
startDate: moment("{{ Session.get('start').format('Y-m-d') }}"),
endDate: moment("{{ Session.get('end').format('Y-m-d') }}"),
startDate: moment("{{ dpStart }}"),
endDate: moment("{{ dpEnd }}"),
linkTitle: "{{ Session.get('start').formatLocalized(monthAndDayFormat) }} - {{ Session.get('end').formatLocalized(monthAndDayFormat) }}",
URL: "{{ route('daterange') }}",
firstDate: moment("{{ Session.get('first').format('Y-m-d') }}"),
currentPeriod: "{{ currentPeriodName }}",
previousPeriod: "{{ previousPeriodName }}",
nextPeriod: "{{ nextPeriodName }}",
currentPeriod: "{{ dpCurrent }}",
previousPeriod: "{{ dpPrevious }}",
nextPeriod: "{{ dpNext }}",
everything: '{{ 'everything'|_ }}',
customRangeLabel: '{{ 'customRange'|_ }}',
applyLabel: '{{ 'apply'|_ }}',
cancelLabel: '{{ 'cancel'|_ }}',
fromLabel: '{{ 'from'|_ }}',
toLabel: '{{ 'to'|_ }}'
toLabel: '{{ 'to'|_ }}',
ranges: {{ dpRanges|json_encode|raw }}
};
var token = "{{ csrf_token() }}";