2011-06-10 00:28:29 +02:00
|
|
|
/**
|
2012-08-08 19:03:41 +02:00
|
|
|
* @provides javelin-behavior-project-create
|
2011-06-10 00:28:29 +02:00
|
|
|
* @requires javelin-behavior
|
|
|
|
* javelin-dom
|
|
|
|
* javelin-stratcom
|
|
|
|
* javelin-workflow
|
|
|
|
*/
|
|
|
|
|
2012-08-08 19:03:41 +02:00
|
|
|
JX.behavior('project-create', function(config) {
|
2011-06-10 00:28:29 +02:00
|
|
|
|
|
|
|
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();
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|