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

Fix Phriction preview

Summary: Missed this in the PHUIDocumentView thing.

Test Plan: Previewed a Phriction edit; grepped more/harder.

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D6110
This commit is contained in:
epriestley 2013-06-01 19:11:28 -07:00
parent a20e87bc16
commit bd9f29e0c4

View file

@ -229,18 +229,17 @@ final class PhrictionEditController
$header = id(new PhabricatorHeaderView()) $header = id(new PhabricatorHeaderView())
->setHeader($panel_header); ->setHeader($panel_header);
$preview_panel = hsprintf( $preview_content = hsprintf(
'<div class="phriction-wrap"> '<div class="phriction-document-preview-header plt pll">%s</div>
<div class="phriction-content">
<div class="phriction-document-preview-header plt pll">%s</div>
<div id="document-preview"> <div id="document-preview">
<div class="aphront-panel-preview-loading-text">%s</div> <div class="aphront-panel-preview-loading-text">%s</div>
</div>
</div>
</div>', </div>',
pht('Document Preview'), pht('Document Preview'),
pht('Loading preview...')); pht('Loading preview...'));
$preview_panel = id(new PHUIDocumentView())
->appendChild($preview_content);
Javelin::initBehavior( Javelin::initBehavior(
'phriction-document-preview', 'phriction-document-preview',
array( array(