client/js/json-serializer.js
changeset 13 6d0e0100f4e8
parent 5 67085e6281e5
child 14 f7d9fe3ef6f3
--- a/client/js/json-serializer.js	Thu Aug 16 14:14:09 2012 +0200
+++ b/client/js/json-serializer.js	Thu Aug 16 15:59:25 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) {
         }
-    );
-}
+    });
+};