SmartAI/Conditions
* embed Conditions into SmartAI table so we can evaluate CONDITION_SOURCE_TYPE_SMART_EVENT (22) * make SmartAI table display flexible
This commit is contained in:
parent
c0454917ac
commit
b764200c2a
13 changed files with 119 additions and 77 deletions
1
setup/sql/updates/1763677664_01.sql
Normal file
1
setup/sql/updates/1763677664_01.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' globaljs');
|
||||
|
|
@ -465,6 +465,18 @@ var Markup = {
|
|||
return [str, '</span>'];
|
||||
}
|
||||
},
|
||||
condition:
|
||||
{
|
||||
ltrim: true,
|
||||
rtrim: true,
|
||||
empty: false,
|
||||
allowedClass: MARKUP_CLASS_STAFF,
|
||||
allowedChildren: { '<text>': 1 },
|
||||
toHtml: function(attr)
|
||||
{
|
||||
return ['<span>' + Markup.toHtml(ConditionList.createCell(JSON.parse(attr._nodes[0].attr._rawText)), { skipReset: true }) + '</span>'];
|
||||
}
|
||||
},
|
||||
copy:
|
||||
{
|
||||
empty: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue