Page MenuHomePhabricator

D8807.id20905.diff
No OneTemporary

D8807.id20905.diff

diff --git a/src/applications/maniphest/controller/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
--- a/src/applications/maniphest/controller/ManiphestTaskDetailController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
@@ -281,7 +281,16 @@
->setControlID('projects')
->setControlStyle('display: none')
->setID('projects-tokenizer')
- ->setDisableBehavior(true))
+ ->setDisableBehavior(true)
+ ->setCaption(
+ javelin_tag(
+ 'a',
+ array(
+ 'href' => '/project/create/',
+ 'mustcapture' => true,
+ 'sigil' => 'project-create',
+ ),
+ pht('Create New Project'))))
->appendChild(
id(new AphrontFormFileControl())
->setLabel(pht('File'))
@@ -297,6 +306,10 @@
->setUser($user))
->appendChild($submit_control);
+ Javelin::initBehavior('project-create', array(
+ 'tokenizerID' => 'projects-tokenizer',
+ ));
+
$control_map = array(
ManiphestTransaction::TYPE_STATUS => 'resolution',
ManiphestTransaction::TYPE_OWNER => 'assign_to',

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 20, 11:07 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737594
Default Alt Text
D8807.id20905.diff (1 KB)

Event Timeline