1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +01:00

Minor, unbreak other changeset APIs.

This commit is contained in:
epriestley 2012-03-12 21:02:15 -07:00
parent b537d1ec01
commit 4c147b496c
3 changed files with 12 additions and 3 deletions

View file

@ -53,6 +53,9 @@ final class DiffusionDiffController extends DiffusionController {
$output = $parser->render($range_s, $range_e, $mask); $output = $parser->render($range_s, $range_e, $mask);
return id(new AphrontAjaxResponse()) return id(new AphrontAjaxResponse())
->setContent($output); ->setContent(
array(
'changeset' => $output,
));
} }
} }

View file

@ -72,7 +72,10 @@ final class ManiphestTaskDescriptionChangeController
$view->setRenderFullSummary(true); $view->setRenderFullSummary(true);
$view->setRangeSpecification($request->getStr('range')); $view->setRangeSpecification($request->getStr('range'));
return id(new AphrontAjaxResponse())->setContent($view->render()); return id(new AphrontAjaxResponse())->setContent(
array(
'changeset' => $view->render(),
));
} }
} }

View file

@ -93,7 +93,10 @@ final class PhrictionDiffController
$output = $parser->render($range_s, $range_e, $mask); $output = $parser->render($range_s, $range_e, $mask);
if ($request->isAjax()) { if ($request->isAjax()) {
return id(new AphrontAjaxResponse())->setContent($output); return id(new AphrontAjaxResponse())->setContent(
array(
'changeset' => $output,
));
} }
require_celerity_resource('differential-changeset-view-css'); require_celerity_resource('differential-changeset-view-css');