mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-03 20:14:31 +00:00
Fix #7188
This commit is contained in:
12
public/v1/js/ff/accounts/index.js
vendored
12
public/v1/js/ff/accounts/index.js
vendored
@@ -87,10 +87,14 @@ function stopSorting() {
|
||||
// post new position via API!
|
||||
//$.post('api/v1/accounts/' + id, {order: newOrder, _token: token});
|
||||
$.ajax({
|
||||
url: 'api/v1/accounts/' + id,
|
||||
data: JSON.stringify({order: newOrder}),
|
||||
type: 'PUT',
|
||||
});
|
||||
url: 'api/v1/accounts/' + id,
|
||||
data: JSON.stringify({order: newOrder}),
|
||||
type: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
2
public/v1/js/ff/accounts/show.js
vendored
2
public/v1/js/ff/accounts/show.js
vendored
@@ -120,7 +120,7 @@ function sortStop(event, ui) {
|
||||
});
|
||||
|
||||
// do extra animation when done?
|
||||
$.post('transactions/reorder', {items: submit, date: thisDate, _token: token});
|
||||
$.post('transactions/reorder', {items: submit, date: thisDate});
|
||||
|
||||
current.animate({backgroundColor: "#5cb85c"}, 200, function () {
|
||||
$(this).animate({backgroundColor: originalBG}, 200);
|
||||
|
||||
Reference in New Issue
Block a user