amalgame/commit
IMPROVED: more GET -> POST switches when call not idempotent
author | Jacco van Ossenbruggen |
---|---|
Fri Aug 15 11:46:03 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Fri Aug 15 11:46:03 2014 +0200 | |
commit | 9d4491f2ceeb8d36c12d3a3049aacd079fc4214d |
tree | 9dda272c9221b76acf3f0dd18ced85fb06e17743 |
parent | ec96c09418801561e1283c73dbc068b6ff5ac592 |
Diff style: patch stat
diff --git a/web/js/builder.js b/web/js/builder.js index 2499373..af2bbbe 100644 --- a/web/js/builder.js +++ b/web/js/builder.js @@ -201,6 +201,7 @@ YUI.add('builder', function(Y) { data.strategy = this.get("strategy"); if (data.lastAction) this.infobox.set("lastAction", data.lastAction); Y.io(paths.addprocess, { + method: 'POST', data:data, on:{success:function(e,o) { var r = Y.JSON.parse(o.responseText); @@ -222,6 +223,7 @@ YUI.add('builder', function(Y) { Y.io(paths.updatenode, { data:data, + method: 'POST', on:{success:function(e,o) { var r = Y.JSON.parse(o.responseText); oSelf.set("nodes", r.nodes); @@ -244,6 +246,7 @@ YUI.add('builder', function(Y) { // inform the server and update the nodes Y.io(paths.deletenode, { + method: 'POST', data:{ strategy:strategy, uri:o.uri