dist/js/jquery.orgchart.js
function ($node) {
      // just show only one superior level
      var $upperLevel = $node.closest('.nodes').siblings().removeClass('hidden');
      // just show only one line
      $upperLevel.eq(2).children().slice(1, -1).addClass('hidden');
      // show parent node with animation
      var $parent = $upperLevel.eq(0).find('.node');
      this.repaint($parent[0]);
      $parent.addClass('sliding').removeClass('slide-down').one('transitionend', { 'node': $node }, this.showParentEnd.bind(this));
    }
function ($node) {
      // just show only one superior level
      var $upperLevel = $node.closest('.nodes').siblings().removeClass('hidden');
      // just show only one line
      $upperLevel.eq(2).children().slice(1, -1).addClass('hidden');
      // show parent node with animation
      var $parent = $upperLevel.eq(0).find('.node');
      this.repaint($parent[0]);
      $parent.addClass('sliding').removeClass('slide-down').one('transitionend', { 'node': $node }, this.showParentEnd.bind(this));
    }
function ( $node ) { // just show only one superior level var $upperLevel = $node . closest ( '.nodes' ) . siblings ( ) . removeClass ( 'hidden' ) ; // just show only one line $upperLevel . eq ( 2 ) . children ( ) . slice ( 1 , - 1 ) . addClass ( 'hidden' ) ; // show parent node with animation var $parent = $upperLevel . eq ( 0 ) . find ( '.node' ) ; this . repaint ( $parent [ 0 ] ) ; $parent . addClass ( 'sliding' ) . removeClass ( 'slide-down' ) . one ( 'transitionend' , { 'node' : $node } , this . showParentEnd . bind ( this ) ) ; }
show the parent node of the specified node
show the parent node of the specified node