mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +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'),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user