--- a/client/js/json-serializer.js Fri Jul 27 19:15:32 2012 +0200
+++ b/client/js/json-serializer.js Mon Jul 30 17:52:13 2012 +0200
@@ -38,6 +38,7 @@
var _nodeData = {
id: _data.id,
title: _data.title,
+ description: _data.description,
uri: _data.uri,
created_by: _data.created_by,
position: {
@@ -90,6 +91,7 @@
return {
id: _node.id,
title: _node.title,
+ description: _node.description,
uri: _node.uri,
from: _node.from.id,
to: _node.to.id,
@@ -101,10 +103,10 @@
}
Rkns.Serializers.BasicJson.prototype._save = function() {
- var _data = this.serialize();
+ var _data = JSON.stringify(this.serialize());
Rkns.$.post(
this._project._opts.url,
- _data,
+ { 'data': _data },
function(_res) {
}
);