Project

General

Profile

5801.patch

Patch - Ghislain Loaec, 07/26/2013 09:53 AM

Download (1.25 KB)

View differences:

src/eolegenconfig/static/js/collections/Variables.js
17 17
    },
18 18

  
19 19
    adoptOne: function(model){
20
      console.log(app.config.categories);
21 20
      model.set('category', app.config.categories.get(model.get('categoryid')));
22
 //     model.set('tag', model.get('category').tags.get(model.get('tagid')));
21
      //model.set('tag', model.get('category').tags.get(model.get('tagid')));
23 22
    },
24 23

  
25 24
    get: function(id){
src/eolegenconfig/static/js/models/Variable.js
67 67
        this._isSerializing = true;
68 68
        var json = _.extend(_.clone(this.attributes), {
69 69
          //tag: this.get('tag').toJSON(),
70
          category: this.get('category').toJSON()
70
          //category: this.get('category').toJSON()
71 71
        });
72 72
        this._isSerializing = false;
73 73
        return json;