Top_15p_Sales_by_Property_Type/report.js
/*
 * Modifies the UI by showing the selected child report and hiding the rest.
 */
Modifies the UI by showing the selected child report and hiding the rest.
Modifies the UI by showing the selected child report and hiding the rest .
function showChild(newChildIndex, newRowIndex) {
    if (newRowIndex != rowIndex || newChildIndex != childIndex) {
        if (selectedChildReport == null) {
            selectedChildReport = document.getElementById("ChildReports." + mainIndex).children[0];
        }
        selectedChildReport.children[0].className = "childreport";
        var newChildId = "Child." + newChildIndex + "." + newRowIndex + "." + mainIndex;
        selectedChildReport = document.getElementById(newChildId);
        selectedChildReport.children[0].className = "currentchildreport";
        childIndex = newChildIndex;
        rowIndex = newRowIndex;
    }
}
function showChild ( newChildIndex , newRowIndex ) { if ( newRowIndex != rowIndex || newChildIndex != childIndex ) { if ( selectedChildReport == null ) { selectedChildReport = document . getElementById ( "ChildReports." + mainIndex ) . children [ 0 ] ; } selectedChildReport . children [ 0 ] . className = "childreport" ; var newChildId = "Child." + newChildIndex + "." + newRowIndex + "." + mainIndex ; selectedChildReport = document . getElementById ( newChildId ) ; selectedChildReport . children [ 0 ] . className = "currentchildreport" ; childIndex = newChildIndex ; rowIndex = newRowIndex ; } }
Modifies the UI by showing the selected child report and hiding the rest.
Modifies the UI by showing the selected child report and hiding the rest .