* Optimize codes.

This commit is contained in:
daitingting
2023-06-12 11:49:38 +00:00
parent 86645174d6
commit b9e6fb1ee9
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -81,10 +81,10 @@ menu
set::items($assignedToItems)
);
$footToolbar = array('items' => array
$footToolbar = $canBatchAssignedTo ? array('items' => array
(
array('caret' => 'up', 'text' => $lang->bug->assignedTo, 'btnType' => 'secondary', 'url' => '#navAssignedTo','data-toggle' => 'dropdown', 'data-placement' => 'top'),
));
)) : null;
dtable
(
@@ -93,9 +93,9 @@ dtable
set::userMap($users),
set::customCols(true),
set::footToolbar($footToolbar),
set::checkable($canBatchAssignTo ? true : false),
set::checkable($canBatchAssignTo),
set::canRowCheckable(jsRaw('function(rowID){return this.getRowInfo(rowID).data.canBeChanged;}')),
$canBatchAssignedTo ? set::footToolbar($footToolbar) : null,
set::footToolbar($footToolbar),
set::footPager(usePager()),
);