mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 15:39:50 +00:00
I noticed a weird page jump in the piggy bank section so it seemed a good moment to clean up some javascript.
This commit is contained in:
16
public/js/piggy-banks/show.js
Normal file
16
public/js/piggy-banks/show.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* show.js
|
||||
* Copyright (C) 2016 Sander Dorigo
|
||||
*
|
||||
* This software may be modified and distributed under the terms
|
||||
* of the MIT license. See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
/* globals $, lineChart, piggyBankID */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
if (typeof(lineChart) === 'function' && typeof(piggyBankID) !== 'undefined') {
|
||||
lineChart('chart/piggy-bank/' + piggyBankID, 'piggy-bank-history');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user