Page MenuHomePhabricator

D8807.diff
No OneTemporary

D8807.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, Dec 22, 6:17 PM (9 h, 19 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6919362
Default Alt Text
D8807.diff (1 KB)

Event Timeline