diff --git a/module/execution/js/bug.ui.js b/module/execution/js/bug.ui.js index fa0cd72fb0..dc05652b93 100644 --- a/module/execution/js/bug.ui.js +++ b/module/execution/js/bug.ui.js @@ -1,4 +1,4 @@ -$(document).on('click', '.batch-btn', function() +$(document).off('click', '.batch-btn').on('click', '.batch-btn', function() { const dtable = zui.DTable.query($(this).target); const checkedList = dtable.$.getChecks(); diff --git a/module/execution/ui/bug.html.php b/module/execution/ui/bug.html.php index b9d1c95406..eb7900745d 100644 --- a/module/execution/ui/bug.html.php +++ b/module/execution/ui/bug.html.php @@ -63,16 +63,10 @@ if($canBatchAssignTo) $assignedToItems = array(); foreach ($users as $account => $name) { - if($account != 'closed') $assignedToItems[] = array('text' => $name, 'class' => 'batch-btn ajax-btn', 'data-url' => helper::createLink('bug', 'batchAssignTo', "assignedTo={$account}&objectID={$execution->id}")); + if($account != 'closed') $assignedToItems[] = array('text' => $name, 'innerClass' => 'batch-btn ajax-btn', 'data-url' => helper::createLink('bug', 'batchAssignTo', "assignedTo={$account}&objectID={$execution->id}")); } - menu( - set::id('navAssignedTo'), - set::className('dropdown-menu'), - set::items($assignedToItems) - ); - - $footToolbar['items'][] = array('caret' => 'up', 'text' => $lang->task->assignedTo, 'btnType' => 'secondary', 'url' => '#navAssignedTo','data-toggle' => 'dropdown'); + $footToolbar['items'][] = array('caret' => 'up', 'text' => $lang->bug->assignedTo, 'className' => 'btn btn-caret size-sm secondary', 'items' => $assignedToItems, 'type' => 'dropdown', 'data-placement' => 'top'); } jsVar('+pageSummary', $summary);