1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12:41 +01:00
phorge-phorge/webroot/rsrc/js/application/projects/behavior-project-create.js

27 lines
588 B
JavaScript
Raw Normal View History

/**
* @provides javelin-behavior-project-create
* @requires javelin-behavior
* javelin-dom
* javelin-stratcom
* javelin-workflow
*/
JX.behavior('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();
});
});