mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
27 lines
608 B
JavaScript
27 lines
608 B
JavaScript
|
/**
|
||
|
* @provides javelin-behavior-maniphest-project-create
|
||
|
* @requires javelin-behavior
|
||
|
* javelin-dom
|
||
|
* javelin-stratcom
|
||
|
* javelin-workflow
|
||
|
*/
|
||
|
|
||
|
JX.behavior('maniphest-project-create', function(config) {
|
||
|
|
||
|
JX.Stratcom.listen(
|
||
|
'click',
|
||
|
'project-create',
|
||
|
function(e) {
|
||
|
JX.Workflow.newFromLink(e.getTarget())
|
||
|
.setHandler(function(r) {
|
||
|
var node = JX.$(config.tokenizerID);
|
||
|
var tokenizer = JX.Stratcom.getData(node).tokenizer;
|
||
|
tokenizer.addToken(r.phid, r.name);
|
||
|
})
|
||
|
.start();
|
||
|
|
||
|
e.kill();
|
||
|
});
|
||
|
|
||
|
});
|