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

@@ -70,6 +70,7 @@ function sortStop(event, ui) {
// animate something with color: // animate something with color:
current.animate({backgroundColor: "#d9534f"}, 200, function () { current.animate({backgroundColor: "#d9534f"}, 200, function () {
$(this).animate({backgroundColor: originalBG}, 200); $(this).animate({backgroundColor: originalBG}, 200);
return undefined;
}); });
return false; return false;

View File

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

View File

@@ -8,6 +8,8 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
/** global: all, current, specific */
$(function () { $(function () {
"use strict"; "use strict";
columnChart(all, 'all'); columnChart(all, 'all');