dist/opt/svnadmin/templates/script.js
/**
 * Inserts alternate row colors to the given table.
 * 
 * @param eTable The table Element
 * @return void
 */
Inserts alternate row colors to the given table.

@param eTable The table Element
@return void
Inserts alternate row colors to the given table . @param eTable The table Element @return void
function alternateRowColors( eTable ){
  var table = eTable;
  var rows = table.getElementsByTagName( "TR" );
  var i = 0;
  for( i = 0; i < rows.length; i++ ){
    var parentTagName = rows[i].parentNode.tagName;
    if( parentTagName == "TFOOT" || parentTagName == "THEAD" ){
      continue;
    }
    if( i % 2 == 0 ){
      rows[i].className = "trbase";
    }
    else{
      rows[i].className = "tralt";
    }
  }
}
function alternateRowColors ( eTable ) { var table = eTable ; var rows = table . getElementsByTagName ( "TR" ) ; var i = 0 ; for ( i = 0 ; i < rows . length ; i ++ ) { var parentTagName = rows [ i ] . parentNode . tagName ; if ( parentTagName == "TFOOT" || parentTagName == "THEAD" ) { continue ; } if ( i % 2 == 0 ) { rows [ i ] . className = "trbase" ; } else { rows [ i ] . className = "tralt" ; } } }
Inserts alternate row colors to the given table.
Inserts alternate row colors to the given table .
// Skip THEAD and TFOOT element rows. // Change className of all other rows.