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:
James Cole
2016-01-29 17:31:07 +01:00
parent b044d85e90
commit c38e4b86b4
5 changed files with 42 additions and 12 deletions

View 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');
}
});