client/js/json-serializer.js
changeset 5 67085e6281e5
parent 4 f5297dde9053
child 10 96476d1fc7c0
child 13 6d0e0100f4e8
--- 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) {
         }
     );