client/js/json-serializer.js
changeset 16 399690e161cc
parent 14 f7d9fe3ef6f3
--- a/client/js/json-serializer.js	Thu Aug 16 16:03:52 2012 +0200
+++ b/client/js/json-serializer.js	Thu Aug 16 16:04:54 2012 +0200
@@ -104,10 +104,12 @@
 
 Rkns.Serializers.BasicJson.prototype._save = function() {
     var _data = JSON.stringify(this.serialize());
-    Rkns.$.post(
-        this._project._opts.url,
-        { 'data': _data },
-        function(_res) {
+    Rkns.$.ajax({
+    	type: 'PUT',
+    	url: this._project._opts.url,
+    	contentType: "application/json",
+    	data: _data,
+    	success: function(data, textStatus, jqXHR) {
         }
-    );
-}
+    });
+};