third_party/pipeline/pipeline/ui/status.js
function expandTreeToPipeline(pipelineId) {
  if (pipelineId == null) {
    return;
  }
  var elementId = getTreePipelineElementId(pipelineId);
  var parents = $(elementId).parents('.expandable');
  if (parents.size() > 0) {
    // The toggle function will scroll to highlight the pipeline.
    parents.children('.hitarea').click();
  } else {
    // No children, so just scroll.
    scrollTreeToPipeline(pipelineId);
  }
}
function expandTreeToPipeline(pipelineId) {
  if (pipelineId == null) {
    return;
  }
  var elementId = getTreePipelineElementId(pipelineId);
  var parents = $(elementId).parents('.expandable');
  if (parents.size() > 0) {
    // The toggle function will scroll to highlight the pipeline.
    parents.children('.hitarea').click();
  } else {
    // No children, so just scroll.
    scrollTreeToPipeline(pipelineId);
  }
}
function expandTreeToPipeline ( pipelineId ) { if ( pipelineId == null ) { return ; } var elementId = getTreePipelineElementId ( pipelineId ) ; var parents = $ ( elementId ) . parents ( '.expandable' ) ; if ( parents . size ( ) > 0 ) { // The toggle function will scroll to highlight the pipeline. parents . children ( '.hitarea' ) . click ( ) ; } else { // No children, so just scroll. scrollTreeToPipeline ( pipelineId ) ; } }
Opens all pipelines down to the target one if not already expanded and scroll that pipeline into view.
Opens all pipelines down to the target one if not already expanded and scroll that pipeline into view .