Add JSON.stringify

This commit is contained in:
James Cole
2023-03-05 07:00:04 +01:00
parent b1e08b1084
commit 83a89181bc

View File

@@ -88,7 +88,7 @@ function stopSorting() {
//$.post('api/v1/accounts/' + id, {order: newOrder, _token: token}); //$.post('api/v1/accounts/' + id, {order: newOrder, _token: token});
$.ajax({ $.ajax({
url: 'api/v1/accounts/' + id, url: 'api/v1/accounts/' + id,
data: {order: newOrder}, data: JSON.stringify({order: newOrder}),
type: 'PUT', type: 'PUT',
}); });
}); });