Fix some javascript things [skip ci]

This commit is contained in:
James Cole
2017-01-02 08:46:45 +01:00
parent 533797fc9e
commit b2030a72a0
3 changed files with 4 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ function updateBudgetedAmounts(e) {
drawBudgetedBar();
// send a post to Firefly to update the amount:
$.post('budgets/amount/' + id, {amount: value, _token: token}).done(function (data) {
$.post('budgets/amount/' + id, {amount: value}).done(function (data) {
// update the link if relevant:
if (data.repetition > 0) {
$('.budget-link[data-id="' + id + '"]').attr('href', 'budgets/show/' + id + '/' + data.repetition);