Skip to content

Firefly III: a personal finances manager

Fix some javascript things [skip ci]

James Coleb2030a72a09e
diff --git a/public/js/ff/accounts/show.js b/public/js/ff/accounts/show.js
index fc41371659..7cff7dc249 100644
--- a/public/js/ff/accounts/show.js
+++ b/public/js/ff/accounts/show.js
@@ -70,6 +70,7 @@ function sortStop(event, ui) {
// animate something with color:
current.animate({backgroundColor: "#d9534f"}, 200, function () {
$(this).animate({backgroundColor: originalBG}, 200);
+ return undefined;
});
return false;
diff --git a/public/js/ff/budgets/index.js b/public/js/ff/budgets/index.js
index 1f8ee67597..936ae07b7f 100644
--- a/public/js/ff/budgets/index.js
+++ b/public/js/ff/budgets/index.js
@@ -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);
diff --git a/public/js/ff/categories/show.js b/public/js/ff/categories/show.js
index a53a5b3d94..e1d5905d24 100644
--- a/public/js/ff/categories/show.js
+++ b/public/js/ff/categories/show.js
@@ -8,6 +8,8 @@
* See the LICENSE file for details.
*/
+/** global: all, current, specific */
+
$(function () {
"use strict";
columnChart(all, 'all');