mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix some javascript things [skip ci]
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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);
|
||||||
|
@@ -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');
|
||||||
|
Reference in New Issue
Block a user