* finish task #5060.
This commit is contained in:
@@ -137,20 +137,32 @@
|
||||
$withSearch = count($memberPairs) > 10;
|
||||
$actionLink = $this->createLink('bug', 'batchAssignTo', "productID=0&type=my");
|
||||
echo html::select('assignedTo', $memberPairs, '', 'class="hidden"');
|
||||
echo "<div class='dropdown-menu search-list' data-ride='searchList'>";
|
||||
if($withSearch)
|
||||
{
|
||||
echo "<div class='dropdown-menu search-list search-box-sink' data-ride='searchList'>";
|
||||
echo '<div class="input-control search-box has-icon-left has-icon-right search-example">';
|
||||
echo '<input id="userSearchBox" type="search" class="form-control search-input" autocomplete="off" />';
|
||||
echo '<label for="userSearchBox" class="input-control-icon-left search-icon"><i class="icon icon-search"></i></label>';
|
||||
echo '<a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a>';
|
||||
echo '</div>';
|
||||
$memberNames = array();
|
||||
foreach($memberPairs as $memberId => $member)
|
||||
{
|
||||
if(empty($memberId)) continue;
|
||||
$memberNames[] = $member;
|
||||
}
|
||||
$membersPinYin = common::convert2Pinyin($memberNames);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<div class='dropdown-menu search-list'>";
|
||||
}
|
||||
echo '<div class="list-group">';
|
||||
foreach ($memberPairs as $key => $value)
|
||||
{
|
||||
if(empty($key)) continue;
|
||||
echo html::a('javascript:$(".table-actions #assignedTo").val("' . $key . '");setFormAction("' . $actionLink . '")', '<i class="icon icon-person icon-sm"></i> ' . $value, '', "data-key='@$key'");
|
||||
$searchKey = $withSearch ? ('data-key="' . zget($membersPinYin, $value, '') . " @$key\"") : "data-key='@$key'";
|
||||
echo html::a('javascript:$(".table-actions #assignedTo").val("' . $key . '");setFormAction("' . $actionLink . '")', '<i class="icon icon-person icon-sm"></i> ' . $value, '', $searchKey);
|
||||
}
|
||||
echo "</div>";
|
||||
echo "</div>";
|
||||
|
||||
Reference in New Issue
Block a user