[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/webroot/rsrc/js/application/files/ -> behavior-launch-icon-composer.js (source)

   1  /**
   2   * @provides javelin-behavior-launch-icon-composer
   3   * @requires javelin-behavior
   4   *           javelin-dom
   5   *           javelin-workflow
   6   */
   7  
   8  JX.behavior('launch-icon-composer', function(config) {
   9  
  10    JX.DOM.listen(
  11      JX.$(config.launchID),
  12      'click',
  13      null,
  14      function(e) {
  15        e.kill();
  16        new JX.Workflow('/file/compose/')
  17          .setHandler(function(r) {
  18            JX.$(config.inputID).value = r.phid;
  19            JX.DOM.findAbove(e.getTarget(), 'form').submit();
  20          })
  21          .start();
  22      });
  23  
  24  });


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1