Differential D12469 Diff 29960 src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | if (isset($sources[$class])) { | ||||
), | ), | ||||
$search), | $search), | ||||
$frame, | $frame, | ||||
); | ); | ||||
return $this->newDialog() | return $this->newDialog() | ||||
->setWidth(AphrontDialogView::WIDTH_FORM) | ->setWidth(AphrontDialogView::WIDTH_FORM) | ||||
->setRenderDialogAsDiv(true) | ->setRenderDialogAsDiv(true) | ||||
->setTitle(get_class($source)) // TODO: Provide nice names. | ->setTitle($source->getBrowseTitle()) | ||||
->appendChild($browser) | ->appendChild($browser) | ||||
->addCancelButton('/', pht('Close')); | ->addCancelButton('/', pht('Close')); | ||||
} | } | ||||
} else if ($is_browse) { | } else if ($is_browse) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} else { | } else { | ||||
$results = array(); | $results = array(); | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |