client/js/json-serializer.js
changeset 13 6d0e0100f4e8
parent 5 67085e6281e5
child 14 f7d9fe3ef6f3
equal deleted inserted replaced
9:2ab67fa1e78d 13:6d0e0100f4e8
   102     return _res;
   102     return _res;
   103 }
   103 }
   104 
   104 
   105 Rkns.Serializers.BasicJson.prototype._save = function() {
   105 Rkns.Serializers.BasicJson.prototype._save = function() {
   106     var _data = JSON.stringify(this.serialize());
   106     var _data = JSON.stringify(this.serialize());
   107     Rkns.$.post(
   107     Rkns.$.ajax({
   108         this._project._opts.url,
   108     	type: 'PUT',
   109         { 'data': _data },
   109     	url: this._project._opts.url,
   110         function(_res) {
   110     	contentType: "application/json",
       
   111     	data: _data,
       
   112     	success: function(data, textStatus, jqXHR) {
   111         }
   113         }
   112     );
   114     });
   113 }
   115 };