mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 03:53:37 +00:00
Cleanup and fix everything related to piggy banks.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
/*
|
||||
This line is required to be properly triggered by Google.
|
||||
*/
|
||||
google.setOnLoadCallback(drawChart);
|
||||
|
||||
|
||||
|
19
public/assets/javascript/firefly/piggybanks.js
Normal file
19
public/assets/javascript/firefly/piggybanks.js
Normal file
@@ -0,0 +1,19 @@
|
||||
$(function () {
|
||||
$('.addMoney').on('click',addMoney);
|
||||
$('.removeMoney').on('click',removeMoney);
|
||||
});
|
||||
|
||||
function addMoney(e) {
|
||||
var pigID = parseInt($(e.target).data('id'));
|
||||
$('#moneyManagementModal').empty().load('piggybanks/add/' + pigID).modal('show');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function removeMoney(e) {
|
||||
var pigID = parseInt($(e.target).data('id'));
|
||||
var pigID = parseInt($(e.target).data('id'));
|
||||
$('#moneyManagementModal').empty().load('piggybanks/remove/' + pigID).modal('show');
|
||||
|
||||
return false;
|
||||
}
|
Reference in New Issue
Block a user