Clean up some code.

This commit is contained in:
James Cole
2020-10-13 06:35:33 +02:00
parent 3bd5ac21c9
commit 4e51f0abc4
33 changed files with 149 additions and 294 deletions

View File

@@ -103,7 +103,7 @@ function updateBudgetedAmount(e) {
updateTotalBudgetedAmount(data.transaction_currency_id);
}).fail(function () {
alert('I failed :(');
console.error('I failed :(');
});
} else {
$.post(updateBudgetLimitUri.replace('REPLACEME', budgetLimitId.toString()), {
@@ -119,7 +119,7 @@ function updateBudgetedAmount(e) {
// update budgeted amount
}).fail(function () {
alert('I failed :(');
console.error('I failed :(');
});
}
}

View File

@@ -70,7 +70,7 @@ $(function () {
}).done(function () {
window.location.reload(true);
}).fail(function () {
alert('Could not change date range');
console.error('Could not change date range');
});
}
);

View File

@@ -53,7 +53,7 @@ function enableGuidance(route, specialPage) {
$.post('json/intro/enable/' + route + '/' + specialPage, {_token: token}).done(function (data) {
alert(data.message);
}).fail(function () {
alert('Could not re-enable introduction.');
console.error('Could not re-enable introduction.');
});
}