scripts/aiv_ui.js
/**
     * @function hideUnhideMapMan - add switch/checkbox functionality to filter PPPIs
     * @param {object} AIVObj - reference to the AIV namespace object
     */
@function hideUnhideMapMan - add switch/checkbox functionality to filter PPPIs
@param {object} AIVObj - reference to the AIV namespace object
@function hideUnhideMapMan - add switch / checkbox functionality to filter PPPIs @param { object } AIVObj - reference to the AIV namespace object
function filterPredictedPPIsSwitch(AIVObj) {
        document.getElementById('filterPPPIsCheckbox').addEventListener('change', function(event){
            AIVObj.cy.$('.pearsonAndInterologfilterPPPI').removeClass('pearsonAndInterologfilterPPPI');
            if (event.target.checked){
                document.getElementById('PPPICorrThreshold').removeAttribute("disabled");
                document.getElementById('PPPIConfThreshold').removeAttribute("disabled");
                pearsonAndInterologFilterPPPIonEles(AIVObj);
            }
            else {
                document.getElementById('PPPICorrThreshold').setAttribute("disabled", "");
                document.getElementById('PPPIConfThreshold').setAttribute("disabled", "");
            }
        });
    }
function filterPredictedPPIsSwitch ( AIVObj ) { document . getElementById ( 'filterPPPIsCheckbox' ) . addEventListener ( 'change' , function ( event ) { AIVObj . cy . $ ( '.pearsonAndInterologfilterPPPI' ) . removeClass ( 'pearsonAndInterologfilterPPPI' ) ; if ( event . target . checked ) { document . getElementById ( 'PPPICorrThreshold' ) . removeAttribute ( "disabled" ) ; document . getElementById ( 'PPPIConfThreshold' ) . removeAttribute ( "disabled" ) ; pearsonAndInterologFilterPPPIonEles ( AIVObj ) ; } else { document . getElementById ( 'PPPICorrThreshold' ) . setAttribute ( "disabled" , "" ) ; document . getElementById ( 'PPPIConfThreshold' ) . setAttribute ( "disabled" , "" ) ; } } ) ; }
@function hideUnhideMapMan - add switch/checkbox functionality to filter PPPIs
 @param {object} AIVObj - reference to the AIV namespace object
@function hideUnhideMapMan - add switch / checkbox functionality to filter PPPIs @param { object } AIVObj - reference to the AIV namespace object
// when checkbox is off, remove filter, when checkbox is on remove them and add them back on... // below logic is for cleaner UI to disable filters when switch is off