mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 09:20:58 +01:00
4f05736175
Summary: Makes it easy to choose distinctive icons for projects. Test Plan: {F71018} {F71020} {F71019} {F71021} Reviewers: btrahan, chad Reviewed By: chad CC: chad, aran Differential Revision: https://secure.phabricator.com/D7333
25 lines
526 B
JavaScript
25 lines
526 B
JavaScript
/**
|
|
* @provides javelin-behavior-launch-icon-composer
|
|
* @requires javelin-behavior
|
|
* javelin-dom
|
|
* javelin-workflow
|
|
*/
|
|
|
|
JX.behavior('launch-icon-composer', function(config) {
|
|
|
|
JX.DOM.listen(
|
|
JX.$(config.launchID),
|
|
'click',
|
|
null,
|
|
function(e) {
|
|
e.kill();
|
|
new JX.Workflow('/file/compose/')
|
|
.setHandler(function(r) {
|
|
JX.$(config.inputID).value = r.phid;
|
|
JX.DOM.findAbove(e.getTarget(), 'form').submit();
|
|
})
|
|
.start();
|
|
});
|
|
|
|
});
|
|
|