mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +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:
parent
a20e87bc16
commit
bd9f29e0c4
1 changed files with 7 additions and 8 deletions
|
@ -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 id="document-preview">
|
||||||
<div class="phriction-document-preview-header plt pll">%s</div>
|
<div class="aphront-panel-preview-loading-text">%s</div>
|
||||||
<div id="document-preview">
|
|
||||||
<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(
|
||||||
|
|
Loading…
Reference in a new issue