dist/js/jquery.orgchart.js
function ($node, direction) {
      var that = this;
      var $nodeContainer = $node.closest('table').parent();
      if ($nodeContainer.siblings().find('.spinner').length) {
        $node.closest('.orgchart').data('inAjax', false);
      }
      if (direction) {
        if (direction === 'left') {
          $nodeContainer.prevAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-right');
        } else {
          $nodeContainer.nextAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-left');
        }
      } else {
        $nodeContainer.prevAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-right');
        $nodeContainer.nextAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-left');
      }
      var $animatedNodes = $nodeContainer.siblings().find('.sliding');
      var $lines = $animatedNodes.closest('.nodes').prevAll('.lines').css('visibility', 'hidden');
      $animatedNodes.eq(0).one('transitionend', { 'node': $node, 'nodeContainer': $nodeContainer, 'direction': direction, 'animatedNodes': $animatedNodes, 'lines': $lines }, this.hideSiblingsEnd.bind(this));
    }
function ($node, direction) {
      var that = this;
      var $nodeContainer = $node.closest('table').parent();
      if ($nodeContainer.siblings().find('.spinner').length) {
        $node.closest('.orgchart').data('inAjax', false);
      }
      if (direction) {
        if (direction === 'left') {
          $nodeContainer.prevAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-right');
        } else {
          $nodeContainer.nextAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-left');
        }
      } else {
        $nodeContainer.prevAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-right');
        $nodeContainer.nextAll().find('.node').filter(this.isVisibleNode.bind(this)).addClass('sliding slide-left');
      }
      var $animatedNodes = $nodeContainer.siblings().find('.sliding');
      var $lines = $animatedNodes.closest('.nodes').prevAll('.lines').css('visibility', 'hidden');
      $animatedNodes.eq(0).one('transitionend', { 'node': $node, 'nodeContainer': $nodeContainer, 'direction': direction, 'animatedNodes': $animatedNodes, 'lines': $lines }, this.hideSiblingsEnd.bind(this));
    }
function ( $node , direction ) { var that = this ; var $nodeContainer = $node . closest ( 'table' ) . parent ( ) ; if ( $nodeContainer . siblings ( ) . find ( '.spinner' ) . length ) { $node . closest ( '.orgchart' ) . data ( 'inAjax' , false ) ; } if ( direction ) { if ( direction === 'left' ) { $nodeContainer . prevAll ( ) . find ( '.node' ) . filter ( this . isVisibleNode . bind ( this ) ) . addClass ( 'sliding slide-right' ) ; } else { $nodeContainer . nextAll ( ) . find ( '.node' ) . filter ( this . isVisibleNode . bind ( this ) ) . addClass ( 'sliding slide-left' ) ; } } else { $nodeContainer . prevAll ( ) . find ( '.node' ) . filter ( this . isVisibleNode . bind ( this ) ) . addClass ( 'sliding slide-right' ) ; $nodeContainer . nextAll ( ) . find ( '.node' ) . filter ( this . isVisibleNode . bind ( this ) ) . addClass ( 'sliding slide-left' ) ; } var $animatedNodes = $nodeContainer . siblings ( ) . find ( '.sliding' ) ; var $lines = $animatedNodes . closest ( '.nodes' ) . prevAll ( '.lines' ) . css ( 'visibility' , 'hidden' ) ; $animatedNodes . eq ( 0 ) . one ( 'transitionend' , { 'node' : $node , 'nodeContainer' : $nodeContainer , 'direction' : direction , 'animatedNodes' : $animatedNodes , 'lines' : $lines } , this . hideSiblingsEnd . bind ( this ) ) ; }
hide the sibling nodes of the specified node
hide the sibling nodes of the specified node