Changeset View
Changeset View
Standalone View
Standalone View
src/view/form/control/PhabricatorRemarkupControl.php
Show All 23 Lines | protected function renderInput() { | ||||
$viewer = $this->getUser(); | $viewer = $this->getUser(); | ||||
if (!$viewer) { | if (!$viewer) { | ||||
throw new PhutilInvalidStateException('setUser'); | throw new PhutilInvalidStateException('setUser'); | ||||
} | } | ||||
// We need to have this if previews render images, since Ajax can not | // We need to have this if previews render images, since Ajax can not | ||||
// currently ship JS or CSS. | // currently ship JS or CSS. | ||||
require_celerity_resource('lightbox-attachment-css'); | require_celerity_resource('phui-lightbox-css'); | ||||
if (!$this->getDisabled()) { | if (!$this->getDisabled()) { | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'aphront-drag-and-drop-textarea', | 'aphront-drag-and-drop-textarea', | ||||
array( | array( | ||||
'target' => $id, | 'target' => $id, | ||||
'activatedClass' => 'aphront-textarea-drag-and-drop', | 'activatedClass' => 'aphront-textarea-drag-and-drop', | ||||
'uri' => '/file/dropupload/', | 'uri' => '/file/dropupload/', | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |