Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/PhabricatorInlineCommentController.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | abstract class PhabricatorInlineCommentController | ||||
public function processRequest() { | public function processRequest() { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$user = $request->getUser(); | $user = $request->getUser(); | ||||
$this->readRequestParameters(); | $this->readRequestParameters(); | ||||
$op = $this->getOperation(); | $op = $this->getOperation(); | ||||
switch ($op) { | switch ($op) { | ||||
case 'busy': | |||||
if ($request->isFormPost()) { | |||||
return new AphrontAjaxResponse(); | |||||
} | |||||
return $this->newDialog() | |||||
->setTitle(pht('Already Editing')) | |||||
->appendParagraph( | |||||
pht( | |||||
'You are already editing an inline comment. Finish editing '. | |||||
'your current comment before adding new comments.')) | |||||
->addCancelButton('/') | |||||
->addSubmitButton(pht('Jump to Inline')); | |||||
case 'hide': | case 'hide': | ||||
case 'show': | case 'show': | ||||
if (!$request->validateCSRF()) { | if (!$request->validateCSRF()) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$ids = $request->getStrList('ids'); | $ids = $request->getStrList('ids'); | ||||
if ($ids) { | if ($ids) { | ||||
▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines |