Authored by yyq

hot word icon-review by huangtao

... ... @@ -45,8 +45,6 @@ edit.prototype = {
var _e = __self.registerEvent[name];
if (_e) {
_e.push(callback);
} else {
__self.registerEvent[name] = [callback];
}
return _e;
},
... ...
... ... @@ -156,10 +156,8 @@ var Bll = {
Bll.__render(".modal-body", templater, Bll.module);
Bll.__editRender();
},
__editRender: function () {
edit.init();
edit.on("file_onComplete_word-icon", function (obj) {
editCallbackFn: function(obj) {
if (obj.key.indexOf('file_onComplete') === 0) {
console.log(obj);
var names = obj.field;
console.log(names);
... ... @@ -176,7 +174,12 @@ var Bll = {
Bll.module.contentData.data = common.util.__buildobj(names, '.', Bll.module.contentData.data, function (o, name) {
o[name] = obj.data;
});
});
}
},
__editRender: function () {
edit.init();
edit.off('callback', Bll.editCallbackFn);
edit.on('callback', Bll.editCallbackFn);
}
};
/**
... ...