Page MenuHomePhabricator

D16160.diff
No OneTemporary

D16160.diff

diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
--- a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
+++ b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
@@ -143,8 +143,6 @@
$items = array();
foreach ($results as $result) {
- $information = $this->renderBrowseResult($result);
-
// Disable already-selected tokens.
$disabled = isset($exclude[$result->getPHID()]);
@@ -161,15 +159,14 @@
),
pht('Select'));
+ $information = $this->renderBrowseResult($result, $button);
+
$items[] = phutil_tag(
'div',
array(
'class' => 'typeahead-browse-item grouped',
),
- array(
- $button,
- $information,
- ));
+ $information);
}
$markup = array(
@@ -352,7 +349,10 @@
->appendChild($view);
}
- private function renderBrowseResult(PhabricatorTypeaheadResult $result) {
+ private function renderBrowseResult(
+ PhabricatorTypeaheadResult $result,
+ $button) {
+
$class = array();
$style = array();
$separator = " \xC2\xB7 ";
@@ -399,6 +399,7 @@
'style' => implode(' ', $style),
),
array(
+ $button,
$name,
$attributes,
));

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 5:58 PM (16 h, 49 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8236340
Default Alt Text
D16160.diff (1 KB)

Event Timeline