* [task#151395] story list compatible with AI.
This commit is contained in:
@@ -287,7 +287,7 @@ dtable
|
||||
set::orderBy($orderBy),
|
||||
set::footToolbar($footToolbar),
|
||||
set::footPager(usePager()),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
!$isFromDoc ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::height(400),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::onCheckChange(jsRaw('window.checkedChange')),
|
||||
($isFromDoc || $isFromAI) ? null : set::customCols(true),
|
||||
|
||||
@@ -604,7 +604,7 @@ dtable
|
||||
'linkCreator' => helper::createLink('execution', 'story', "executionID={$execution->id}&storyType={$storyType}&orderBy=$orderBy&type={$type}¶m={$param}&recTotal={recTotal}&recPerPage={recPerPage}&page={page}&from={$from}&blockID={$blockID}") . "#app={$app->tab}"
|
||||
))),
|
||||
set::emptyTip($lang->execution->noStory),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
!$isFromDoc ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::onCheckChange(jsRaw('window.checkedChange')),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::height(400),
|
||||
($isFromDoc || $isFromAI) ? null : set::customCols(array('url' => createLink('datatable', 'ajaxcustom', "module={$app->moduleName}&method={$app->methodName}&extra={$storyType}"), 'globalUrl' => createLink('datatable', 'ajaxsaveglobal', "module={$app->moduleName}&method={$app->methodName}&extra={$storyType}"))),
|
||||
|
||||
@@ -337,7 +337,7 @@ dtable
|
||||
'recTotal' => $pager->recTotal,
|
||||
'linkCreator' => helper::createLink('execution', 'task', "executionID={$execution->id}&status={$status}¶m={$param}&orderBy=$orderBy&recTotal={$pager->recTotal}&recPerPage={recPerPage}&page={page}&from={$from}&blockID={$blockID}") . "#app={$app->tab}"
|
||||
))),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
!$isFromDoc ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::onCheckChange(jsRaw('window.checkedChange')),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::noNestedCheck(true),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::height(400),
|
||||
|
||||
@@ -552,7 +552,7 @@ dtable
|
||||
set::footPager(usePager()),
|
||||
set::emptyTip($emptyTip),
|
||||
set::footToolbar($footToolbar),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
!$isFromDoc ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::onCheckChange(jsRaw('window.checkedChange')),
|
||||
(!$isFromDoc && !$isFromAI) ? null : set::height(400),
|
||||
($isFromDoc || $isFromAI) ? null : set::customCols(array('url' => createLink('datatable', 'ajaxcustom', "module={$app->moduleName}&method={$app->methodName}&extra={$storyType}"), 'globalUrl' => createLink('datatable', 'ajaxsaveglobal', "module={$app->moduleName}&method={$app->methodName}&extra={$storyType}"), 'resetUrl' => createLink('datatable', 'ajaxreset', "module={$app->moduleName}&method={$app->methodName}&system=0&confirm=no&extra={$storyType}"), 'resetGlobalUrl' => createLink('datatable', 'ajaxreset', "module={$app->moduleName}&method={$app->methodName}&system=1&confirm=no&extra={$storyType}"))),
|
||||
|
||||
@@ -110,6 +110,7 @@ foreach($stories as $story)
|
||||
}
|
||||
|
||||
$footToolbar = array(array('text' => $lang->doc->insertText, 'data-on' => 'click', 'data-call' => "insertListToDoc('#projectStories', 'projectStory', $blockID, '$insertListLink')"));
|
||||
if($from == 'ai') $footToolbar = array(array('text' => $lang->doc->insertText, 'data-on' => 'click', 'data-call' => "insertListToAI('#projectStories', 'story')"));
|
||||
|
||||
dtable
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user