Summary: I'm pretty sure that `@group` annotations are useless now... see D9855. Also fixed various other minor issues. Test Plan: Eye-ball it. Reviewers: #blessed_reviewers, epriestley, chad Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin, hach-que Differential Revision: https://secure.phabricator.com/D9859
20 lines
534 B
PHP
20 lines
534 B
PHP
<?php
|
|
|
|
/**
|
|
* When actions happen over a JX.Workflow, we may want to reload the page
|
|
* if the action is javascript-driven but redirect if it isn't. This preserves
|
|
* query parameters in the javascript case. A reload response behaves like
|
|
* a redirect response but causes a page reload when received via workflow.
|
|
*/
|
|
final class AphrontReloadResponse extends AphrontRedirectResponse {
|
|
|
|
public function getURI() {
|
|
if ($this->getRequest()->isAjax()) {
|
|
return null;
|
|
} else {
|
|
return parent::getURI();
|
|
}
|
|
}
|
|
|
|
}
|