common event table

editor_mode generate table
This commit is contained in:
YouWei Zhao committed 2019-01-31 18:10:32 -05:00
1 parent 83be55d893
commit 60955f2384
1 file changed
+16
+16
View File
@@ -373,6 +373,9 @@ editor_mode = function (editor) {
case 'functions':
editor.file.editFunctions(actionList, cb);
break;
case 'commonevent':
editor.file.editCommonEvent(actionList, cb);
break;
default:
break;
}
@@ -502,6 +505,19 @@ editor_mode = function (editor) {
if (Boolean(callback)) callback();
}
editor_mode.prototype.commonevent = function (callback) {
var objs = [];
editor.file.editCommonEvent([], function (objs_) {
objs = objs_;
//console.log(objs_)
});
//只查询不修改时,内部实现不是异步的,所以可以这么写
var tableinfo = editor_mode.objToTable_(objs[0], objs[1]);
document.getElementById('table_b7bf0124_99fd_4af8_ae2f_0017f04a7c7d').innerHTML = tableinfo.HTML;
tableinfo.listen(tableinfo.guids);
if (Boolean(callback)) callback();
}
/////////////////////////////////////////////////////////////////////////////
editor_mode.prototype.listen = function (callback) {