Update skin structure in editor.
This commit is contained in:
@@ -11,11 +11,9 @@ var cel;
|
||||
var clist;
|
||||
|
||||
var blocklists = {
|
||||
"block.element": ["statement.obj", "statement.select"],
|
||||
"block.filter": ["statement.filter.type", "statement.filter.exp"],
|
||||
"block.object": ["statement.comp", "statement.prop", "statement.filter"],
|
||||
"block.element": ["statement.select", "statement.obj", "statement.comp", "statement.prop"],
|
||||
"block.root": ["statement.select", "statement.define"],
|
||||
"block.select": ["statement.select.type", "statement.select.exp"],
|
||||
"block.select": ["statement.select.type", "statement.select.exp", "statement.select.anchor", "statement.select.atanchor"],
|
||||
};
|
||||
|
||||
var ilid = 0;
|
||||
@@ -36,18 +34,17 @@ var inputlists = {
|
||||
var statementlists = {
|
||||
"statement.comp": ["input.comp"],
|
||||
"statement.define": ["input.ident", "exp"],
|
||||
"statement.filter": ["block.filter", "block.object"],
|
||||
"statement.filter.exp": ["exp"],
|
||||
"statement.filter.type": ["input.type"],
|
||||
"statement.obj": ["block.object"],
|
||||
"statement.exp.literal.ident": ["input.ident"],
|
||||
"statement.exp.literal.number": ["input.number"],
|
||||
"statement.exp.op.add": ["exp.number", "exp.number"],
|
||||
"statement.exp.op.substract": ["exp.number", "exp.number"],
|
||||
"statement.exp.op.multiply": ["exp.number", "exp.number"],
|
||||
"statement.exp.op.divide": ["exp.number", "exp.number"],
|
||||
"statement.obj": ["block.element"],
|
||||
"statement.prop": ["input.prop", "exp"],
|
||||
"statement.select": ["block.select", "block.element"],
|
||||
"statement.select.anchor": ["input.identanchor"],
|
||||
"statement.select.atanchor": ["input.identanchor"],
|
||||
"statement.select.exp": ["exp"],
|
||||
"statement.select.type": ["input.type"],
|
||||
};
|
||||
@@ -134,7 +131,7 @@ var tblist = {
|
||||
"tb-hide-add": "mode-hide-add",
|
||||
"tb-hide-delete": "mode-hide-delete",
|
||||
"tb-sort": "mode-sort",
|
||||
}
|
||||
};
|
||||
function onToggleButtonClick(id, state) {
|
||||
var cls = tblist[id];
|
||||
if (state) tv.addClass(cls);
|
||||
|
Reference in New Issue
Block a user