Make sure that charts work when Firefly III is in a subdirectory. Thx to @xnyhps.

This commit is contained in:
James Cole 2016-03-16 17:28:04 +01:00
parent a220094941
commit 64f273120e
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ function drawChart() {
// month view:
// draw account chart
lineChart('/chart/account/report/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'account-balances-chart');
lineChart('chart/account/report/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'account-balances-chart');
}

View File

@ -116,7 +116,7 @@ function drawChart() {
}
if (typeof lineChart !== 'undefined' && typeof accountIds !== 'undefined') {
lineChart('/chart/account/report/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'account-balances-chart');
lineChart('chart/account/report/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'account-balances-chart');
}
}