common event table
editor_mode generate table
This commit is contained in:
parent
83be55d893
commit
60955f2384
@ -373,6 +373,9 @@ editor_mode = function (editor) {
|
|||||||
case 'functions':
|
case 'functions':
|
||||||
editor.file.editFunctions(actionList, cb);
|
editor.file.editFunctions(actionList, cb);
|
||||||
break;
|
break;
|
||||||
|
case 'commonevent':
|
||||||
|
editor.file.editCommonEvent(actionList, cb);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -502,6 +505,19 @@ editor_mode = function (editor) {
|
|||||||
if (Boolean(callback)) callback();
|
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) {
|
editor_mode.prototype.listen = function (callback) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user