client/js/models.js
changeset 52 e0f6f3c31150
parent 45 37c9a17c3284
child 56 a9b9e6c7be63
equal deleted inserted replaced
51:3247fccfbd3f 52:e0f6f3c31150
    86                 title: this.get("title"),
    86                 title: this.get("title"),
    87                 uri: this.get("uri"),
    87                 uri: this.get("uri"),
    88                 description: this.get("description"),
    88                 description: this.get("description"),
    89                 position: this.get("position"),
    89                 position: this.get("position"),
    90                 image: this.get("image"),
    90                 image: this.get("image"),
       
    91                 color: this.get("color"),
    91                 created_by: this.get("created_by") ? this.get("created_by").get("_id") : null
    92                 created_by: this.get("created_by") ? this.get("created_by").get("_id") : null
    92             };
    93             };
    93         },
    94         },
    94     });
    95     });
    95     
    96     
   126                 title: this.get("title"),
   127                 title: this.get("title"),
   127                 uri: this.get("uri"),
   128                 uri: this.get("uri"),
   128                 description: this.get("description"),
   129                 description: this.get("description"),
   129                 from: this.get("from") ? this.get("from").get("_id") : null,
   130                 from: this.get("from") ? this.get("from").get("_id") : null,
   130                 to: this.get("to") ? this.get("to").get("_id") : null,
   131                 to: this.get("to") ? this.get("to").get("_id") : null,
       
   132                 color: this.get("color"),
   131                 created_by: this.get("created_by") ? this.get("created_by").get("_id") : null
   133                 created_by: this.get("created_by") ? this.get("created_by").get("_id") : null
   132             };
   134             };
   133         },
   135         },
   134     });
   136     });
   135         
   137