Cleanup some modals.

This commit is contained in:
James Cole
2015-05-31 20:23:49 +02:00
parent 67d9154563
commit 4ae24225a5
9 changed files with 14 additions and 29 deletions

View File

@@ -188,10 +188,10 @@ $(function () {
//
//}
//
function updateIncome() {
function updateIncome(e) {
"use strict";
$('#monthlyBudgetModal').empty().load('budgets/income', function () {
$('#monthlyBudgetModal').modal('show');
$('#defaultModal').empty().load('budgets/income', function () {
$('#defaultModal').modal('show');
});
return false;

View File

@@ -50,8 +50,8 @@ $(function () {
function addMoney(e) {
"use strict";
var pigID = parseInt($(e.target).data('id'));
$('#moneyManagementModal').empty().load('piggy-banks/add/' + pigID, function () {
$('#moneyManagementModal').modal('show');
$('#defaultModal').empty().load('piggy-banks/add/' + pigID, function () {
$('#defaultModal').modal('show');
});
return false;