dist/opt/svnadmin/templates/script.js
/**
 * Selects all checkboxes in a table.
 * 
 * Change by Sean Chan:
 *  Only selects visible rows.
 *  The checkboxes must be in a table cell, because the function checks,
 *  whether the parent row (TR) tag is visible.
 * 
 * @param srcObj The "select-all" checkbox.
 * @param targetCheckBoxName The name of the other checkboxes.
 */
Selects all checkboxes in a table.

Change by Sean Chan:
Only selects visible rows.
The checkboxes must be in a table cell, because the function checks,
whether the parent row (TR) tag is visible.

@param srcObj The "select-all" checkbox.
@param targetCheckBoxName The name of the other checkboxes.
Selects all checkboxes in a table . Change by Sean Chan : Only selects visible rows . The checkboxes must be in a table cell because the function checks whether the parent row ( TR ) tag is visible . @param srcObj The " select - all " checkbox . @param targetCheckBoxName The name of the other checkboxes .
function selectAll(srcObj, targetCheckBoxName)
{
  var checked_status = srcObj.checked;
  $("input[name='"+targetCheckBoxName+"'][type='checkbox']").each(function(){
    this.checked = false;
    visible = this.parentNode.parentNode.style.display;
    if(visible != "none"){
      this.checked = checked_status;
    }
  });
}
function selectAll ( srcObj , targetCheckBoxName ) { var checked_status = srcObj . checked ; $ ( "input[name='" + targetCheckBoxName + "'][type='checkbox']" ) . each ( function ( ) { this . checked = false ; visible = this . parentNode . parentNode . style . display ; if ( visible != "none" ) { this . checked = checked_status ; } } ) ; }
Selects all checkboxes in a table.
Selects all checkboxes in a table .
//check if this row is display or not(is in the filter or not) //I assume each <input> are in the row format like: //"<tr><td><input></input></td></tr>"