5801.patch
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; |