|
@@ -88,6 +88,7 @@ var Bll = { |
|
@@ -88,6 +88,7 @@ var Bll = { |
88
|
if (edit.validate()) {
|
88
|
if (edit.validate()) {
|
89
|
//TODO
|
89
|
//TODO
|
90
|
!!~index ? Bll.contentDatas[index] = module : Bll.contentDatas.push(module);
|
90
|
!!~index ? Bll.contentDatas[index] = module : Bll.contentDatas.push(module);
|
|
|
91
|
+ console.log("Bll.contentDatas",Bll.contentDatas);
|
91
|
Bll.rendContent();
|
92
|
Bll.rendContent();
|
92
|
console.log(Bll.contentDatas);
|
93
|
console.log(Bll.contentDatas);
|
93
|
|
94
|
|
|
@@ -102,9 +103,11 @@ var Bll = { |
|
@@ -102,9 +103,11 @@ var Bll = { |
102
|
edit.init();
|
103
|
edit.init();
|
103
|
edit.on("callback", function(obj) {
|
104
|
edit.on("callback", function(obj) {
|
104
|
if (/^file_onComplete/.test(obj.key)) {
|
105
|
if (/^file_onComplete/.test(obj.key)) {
|
105
|
- //(!!~index?index:0)
|
|
|
106
|
- var _field = obj.key.replace(/^file_onComplete_file__/, '').split('-');
|
|
|
107
|
- // Bll.module.data[_field[1]].src = obj.data;
|
106
|
+ var names=obj.field;
|
|
|
107
|
+ Bll.module.data=common.util.__buildobj(names, '.', Bll.module.data, function(o, name) {
|
|
|
108
|
+ o[name] = obj.data;
|
|
|
109
|
+ });
|
|
|
110
|
+ console.log(Bll.module.data);
|
108
|
|
111
|
|
109
|
}
|
112
|
}
|
110
|
});
|
113
|
});
|