Skip to content

Commit bd9f29e

Browse files
author
epriestley
committed
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
1 parent a20e87b commit bd9f29e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/applications/phriction/controller/PhrictionEditController.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,17 @@ public function processRequest() {
229229
$header = id(new PhabricatorHeaderView())
230230
->setHeader($panel_header);
231231

232-
$preview_panel = hsprintf(
233-
'<div class="phriction-wrap">
234-
<div class="phriction-content">
235-
<div class="phriction-document-preview-header plt pll">%s</div>
236-
<div id="document-preview">
237-
<div class="aphront-panel-preview-loading-text">%s</div>
238-
</div>
239-
</div>
232+
$preview_content = hsprintf(
233+
'<div class="phriction-document-preview-header plt pll">%s</div>
234+
<div id="document-preview">
235+
<div class="aphront-panel-preview-loading-text">%s</div>
240236
</div>',
241237
pht('Document Preview'),
242238
pht('Loading preview...'));
243239

240+
$preview_panel = id(new PHUIDocumentView())
241+
->appendChild($preview_content);
242+
244243
Javelin::initBehavior(
245244
'phriction-document-preview',
246245
array(

0 commit comments

Comments
 (0)