2016-01-29 17:31:07 +01:00
|
|
|
/*
|
|
|
|
|
* show.js
|
2020-02-16 13:59:41 +01:00
|
|
|
* Copyright (c) 2019 james@firefly-iii.org
|
2016-01-29 17:31:07 +01:00
|
|
|
*
|
2019-10-02 06:43:38 +02:00
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
2016-12-23 07:02:45 +01:00
|
|
|
*
|
2019-10-02 06:43:38 +02:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
* License, or (at your option) any later version.
|
2017-10-21 08:40:00 +02:00
|
|
|
*
|
2019-10-02 06:43:38 +02:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2017-10-21 08:40:00 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2019-10-02 06:43:38 +02:00
|
|
|
* GNU Affero General Public License for more details.
|
2017-10-21 08:40:00 +02:00
|
|
|
*
|
2019-10-02 06:43:38 +02:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-01-29 17:31:07 +01:00
|
|
|
*/
|
2017-01-02 10:34:01 +01:00
|
|
|
/** global: piggyBankID, lineChart */
|
2016-01-29 17:31:07 +01:00
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
"use strict";
|
|
|
|
|
if (typeof(lineChart) === 'function' && typeof(piggyBankID) !== 'undefined') {
|
|
|
|
|
lineChart('chart/piggy-bank/' + piggyBankID, 'piggy-bank-history');
|
|
|
|
|
}
|
2025-06-04 15:40:29 +02:00
|
|
|
|
|
|
|
|
// on submit of logout button:
|
|
|
|
|
$('.reset-link').click(function(e) {
|
|
|
|
|
console.log('here we are');
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
document.getElementById('reset-form').submit();
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
});
|