Use RemarkupControl in Differential inline comment UI

Summary: Fixes T4317. Update the "inline comment" control to a RemarkupControl. This could maybe use some padding/spacing/design touches eventually but seems OK for the moment.

Test Plan: {F101825}

Reviewers: chad, btrahan

Reviewed By: chad

CC: chad, aran

Maniphest Tasks: T4317

Differential Revision: https://secure.phabricator.com/D7969
This commit is contained in:
epriestley
2014-01-14 15:15:47 -08:00
parent 9f6aa3526a
commit 42d9fa34e2
3 changed files with 7 additions and 22 deletions

View File

@@ -235,14 +235,11 @@ abstract class PhabricatorInlineCommentController
}
private function renderTextArea($text) {
return javelin_tag(
'textarea',
array(
'class' => 'differential-inline-comment-edit-textarea',
'sigil' => 'differential-inline-comment-edit-textarea',
'name' => 'text',
),
$text);
return id(new PhabricatorRemarkupControl())
->setUser($this->getRequest()->getUser())
->setSigil('differential-inline-comment-edit-textarea')
->setName('text')
->setValue($text);
}
}