PATCH instead of POST

This commit is contained in:
Mattijs Vanhaverbeke
2020-05-22 12:57:58 +02:00
parent 371c5c3502
commit de5707ff06
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -212,10 +212,11 @@ function handleButtonPress() {
//nodes.update({ id: node_id, physics: false });
$.ajax({
url: "../../api/plugins/topology-views/save-coords/save_coords/",
type: 'POST',
type: 'PATCH',
dataType: 'json',
headers: { "X-CSRFToken": csrftoken },
contentType: "application/json; charset=utf-8",
processData: false,
data: JSON.stringify({
'node_id': node_id,
'x': coordinates.x,