mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Fix JS error.
This commit is contained in:
@@ -5,16 +5,19 @@ $(function () {
|
|||||||
"use strict";
|
"use strict";
|
||||||
drawChart();
|
drawChart();
|
||||||
|
|
||||||
picker = $('#inputDateRange').daterangepicker(
|
if ($('#inputDateRange').length > 0) {
|
||||||
{
|
|
||||||
locale: {
|
picker = $('#inputDateRange').daterangepicker(
|
||||||
format: 'YYYY-MM-DD',
|
{
|
||||||
firstDay: 1,
|
locale: {
|
||||||
},
|
format: 'YYYY-MM-DD',
|
||||||
minDate: minDate,
|
firstDay: 1,
|
||||||
drops: 'up',
|
},
|
||||||
}
|
minDate: minDate,
|
||||||
);
|
drops: 'up',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// set values from cookies, if any:
|
// set values from cookies, if any:
|
||||||
if (readCookie('report-type') !== null) {
|
if (readCookie('report-type') !== null) {
|
||||||
|
Reference in New Issue
Block a user