-
Notifications
You must be signed in to change notification settings - Fork 0
/
json.js
46 lines (30 loc) · 1.1 KB
/
json.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Ext.application({
name : 'Televisa',
appFolder : "./js/tvsa/",
launch: function() {
var me = this;
var feed = Ext.create("TVSA.Tree",{
url : './data.js',
listeners : {
"renderTree" : function(storeFeed){
var recordFeed = storeFeed.getRootNode().findChild("id","tree.total");
// console.log(recordFeed.getData())
template = Ext.create("TVSA.Tree",{
url : './template.js',
listeners : {
"renderTree" : function(storeTemplate){
var recordTemplate = storeTemplate.getRootNode().findChild("id","tree.records");
recordFeed.set("id","tree.records");
// console.log(recordFeed.getData())
recordTemplate.set(recordFeed.getData())
recordTemplate.commit();
// console.log(recordTemplate)
}
}
});
}
}
});
//tree.total=tree.records
}
});