mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Go from get to post.
This commit is contained in:
33
public/v1/js/ff/budgets/index.js
vendored
33
public/v1/js/ff/budgets/index.js
vendored
@@ -108,38 +108,7 @@ function sortStop(event, ui) {
|
||||
page: page,
|
||||
_token: token
|
||||
};
|
||||
// var thisDate = current.data('date');
|
||||
// var originalBG = current.css('backgroundColor');
|
||||
//
|
||||
//
|
||||
// if (current.prev().data('date') !== thisDate && current.next().data('date') !== thisDate) {
|
||||
// // animate something with color:
|
||||
// current.animate({backgroundColor: "#d9534f"}, 200, function () {
|
||||
// $(this).animate({backgroundColor: originalBG}, 200);
|
||||
// return undefined;
|
||||
// });
|
||||
//
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// // do update
|
||||
// var list = $('tr[data-date="' + thisDate + '"]');
|
||||
// var submit = [];
|
||||
// $.each(list, function (i, v) {
|
||||
// var row = $(v);
|
||||
// var id = row.data('id');
|
||||
// submit.push(id);
|
||||
// });
|
||||
//
|
||||
// // do extra animation when done?
|
||||
$.get('budgets/reorder', arr);
|
||||
//
|
||||
// current.animate({backgroundColor: "#5cb85c"}, 200, function () {
|
||||
// $(this).animate({backgroundColor: originalBG}, 200);
|
||||
// return undefined;
|
||||
// });
|
||||
// return undefined;
|
||||
//alert('drop!');
|
||||
$.post('budgets/reorder', arr);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user