1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Enable hovercard controller to send ajax ready responses

Summary: Refs T1048 - Resolves the TODO

Test Plan: Used in a future diff. Used JX.log to verify JSON format and correct gibberish HTML output of input (I will never understand how browsers can be so evil and ignore `Content-Type`).

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1048

Differential Revision: https://secure.phabricator.com/D5557
This commit is contained in:
epriestley 2013-04-03 14:20:39 -07:00
parent 8b6fc615f4
commit 8f3ec9d977

View file

@ -54,10 +54,12 @@ final class PhabricatorSearchHovercardController
array(
'dust' => true,
));
} else {
return id(new AphrontAjaxResponse())->setContent(
array(
'cards' => $cards,
));
}
// TODO: Write a reasonable way to provide client-side-ready hovercard
// put-into-the-browser markup (coming in the next diff)
}
}