--- 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) {
}
- );
-}
+ });
+};