From cc810a5b6ffe9def2304d22505413e511cd3c182 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 31 Dec 2015 07:54:11 +0100 Subject: [PATCH] Renamed a chart to be more consistent with the others. --- app/Http/routes.php | 2 +- public/js/piggy-banks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/routes.php b/app/Http/routes.php index 21dec7d669..07439361ba 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -422,7 +422,7 @@ Route::group( Route::get('/chart/category/{category}/all', ['uses' => 'Chart\CategoryController@all']); // piggy banks: - Route::get('/chart/piggyBank/{piggyBank}', ['uses' => 'Chart\PiggyBankController@history']); + Route::get('/chart/piggy-bank/{piggyBank}', ['uses' => 'Chart\PiggyBankController@history']); // reports: Route::get('/chart/report/in-out/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\ReportController@yearInOut']); diff --git a/public/js/piggy-banks.js b/public/js/piggy-banks.js index 4b8aa3ab6b..72789f59b2 100644 --- a/public/js/piggy-banks.js +++ b/public/js/piggy-banks.js @@ -15,7 +15,7 @@ $(function () { $('.removeMoney').on('click', removeMoney); if (typeof(lineChart) === 'function' && typeof(piggyBankID) !== 'undefined') { - lineChart('chart/piggyBank/' + piggyBankID, 'piggy-bank-history'); + lineChart('chart/piggy-bank/' + piggyBankID, 'piggy-bank-history'); } $('#sortable tbody').sortable(