mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-12 20:58:33 +00:00
Remove trial code, restore repository. Should not have committed this. Oh well. Let's continue this in a branch like I'm supposed to.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// date ranges
|
||||
var ranges = {};
|
||||
var ranges = {}
|
||||
{% for title, range in dateRangeConfig.ranges %}
|
||||
ranges["{{ title }}"] = ["{{ range[0].format('Y-m-d') }}", "{{ range[1].format('Y-m-d') }}"];
|
||||
ranges["{{ title }}"] = [moment("{{ range[0].format('Y-m-d') }}"), moment("{{ range[1].format('Y-m-d') }}")];
|
||||
{% endfor %}
|
||||
|
||||
// date range meta configuration
|
||||
@@ -19,8 +19,8 @@ customRange: "{{ 'customRange'|_ }}"
|
||||
|
||||
// date range actual configuration:
|
||||
var dateRangeConfig = {
|
||||
startDate: "{{ dateRangeConfig.start }}",
|
||||
endDate: "{{ dateRangeConfig.end }}",
|
||||
startDate: moment("{{ dateRangeConfig.start }}"),
|
||||
endDate: moment("{{ dateRangeConfig.end }}"),
|
||||
ranges: ranges
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user