Differential D8232 Diff 19592 src/applications/maniphest/controller/ManiphestTaskDetailController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTaskDetailController.php
| Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | $control_map = array( | ||||
| ManiphestTransaction::TYPE_PROJECTS => 'projects', | ManiphestTransaction::TYPE_PROJECTS => 'projects', | ||||
| ManiphestTransaction::TYPE_ATTACH => 'file', | ManiphestTransaction::TYPE_ATTACH => 'file', | ||||
| ); | ); | ||||
| $tokenizer_map = array( | $tokenizer_map = array( | ||||
| ManiphestTransaction::TYPE_PROJECTS => array( | ManiphestTransaction::TYPE_PROJECTS => array( | ||||
| 'id' => 'projects-tokenizer', | 'id' => 'projects-tokenizer', | ||||
| 'src' => '/typeahead/common/projects/', | 'src' => '/typeahead/common/projects/', | ||||
| 'ondemand' => PhabricatorEnv::getEnvConfig('tokenizer.ondemand'), | |||||
| 'placeholder' => pht('Type a project name...'), | 'placeholder' => pht('Type a project name...'), | ||||
| ), | ), | ||||
| ManiphestTransaction::TYPE_OWNER => array( | ManiphestTransaction::TYPE_OWNER => array( | ||||
| 'id' => 'assign-tokenizer', | 'id' => 'assign-tokenizer', | ||||
| 'src' => '/typeahead/common/users/', | 'src' => '/typeahead/common/users/', | ||||
| 'value' => $default_claim, | 'value' => $default_claim, | ||||
| 'limit' => 1, | 'limit' => 1, | ||||
| 'ondemand' => PhabricatorEnv::getEnvConfig('tokenizer.ondemand'), | |||||
| 'placeholder' => pht('Type a user name...'), | 'placeholder' => pht('Type a user name...'), | ||||
| ), | ), | ||||
| ManiphestTransaction::TYPE_CCS => array( | ManiphestTransaction::TYPE_CCS => array( | ||||
| 'id' => 'cc-tokenizer', | 'id' => 'cc-tokenizer', | ||||
| 'src' => '/typeahead/common/mailable/', | 'src' => '/typeahead/common/mailable/', | ||||
| 'ondemand' => PhabricatorEnv::getEnvConfig('tokenizer.ondemand'), | |||||
| 'placeholder' => pht('Type a user or mailing list...'), | 'placeholder' => pht('Type a user or mailing list...'), | ||||
| ), | ), | ||||
| ); | ); | ||||
| // TODO: Initializing these behaviors for logged out users fatals things. | // TODO: Initializing these behaviors for logged out users fatals things. | ||||
| if ($user->isLoggedIn()) { | if ($user->isLoggedIn()) { | ||||
| Javelin::initBehavior('maniphest-transaction-controls', array( | Javelin::initBehavior('maniphest-transaction-controls', array( | ||||
| 'select' => 'transaction-action', | 'select' => 'transaction-action', | ||||
| ▲ Show 20 Lines • Show All 389 Lines • Show Last 20 Lines | |||||