--- a/client/js/models.js Mon Apr 28 16:11:21 2014 +0200
+++ b/client/js/models.js Mon Apr 28 17:40:41 2014 +0200
@@ -147,6 +147,18 @@
relatedModel: User
}
],
+ toJSON: function() {
+ return {
+ _id: this.get("_id"),
+ zoom_level: this.get("zoom_level"),
+ offset_x: this.get("offset_x"),
+ offset_y: this.get("offset_y"),
+ title: this.get("title"),
+ description: this.get("description"),
+ created_by: this.get("created_by") ? this.get("created_by").get("_id") : null
+ // Don't need project id
+ };
+ }
});
// PROJECT