scripts/aiv_ui.js
/**
     * @function enableInteractionsCheckbox - make recursive checkbox only work when BAR PPI is selected
     */
@function enableInteractionsCheckbox - make recursive checkbox only work when BAR PPI is selected
@function enableInteractionsCheckbox - make recursive checkbox only work when BAR PPI is selected
function enableInteractionsCheckbox(){
        let barPPICheckbox = document.getElementById('queryBAR');
        barPPICheckbox.addEventListener('change', function(){
            var recursiveCheckbox = document.getElementById("recursive");
            var dnaCheckbox = document.getElementById("queryDna");
            if (barPPICheckbox.checked) {
                recursiveCheckbox.disabled = false;
                recursiveCheckbox.parentNode.classList.remove('not-allowed');
                dnaCheckbox.disabled = false;
                dnaCheckbox.parentNode.classList.remove('not-allowed');
            }
            else {
                recursiveCheckbox.parentNode.classList.add('not-allowed');
                recursiveCheckbox.disabled = true;
                recursiveCheckbox.checked = false;
                dnaCheckbox.parentNode.classList.add('not-allowed');
                dnaCheckbox.disabled = true;
                dnaCheckbox.checked = false;
            }
        });
    }
function enableInteractionsCheckbox ( ) { let barPPICheckbox = document . getElementById ( 'queryBAR' ) ; barPPICheckbox . addEventListener ( 'change' , function ( ) { var recursiveCheckbox = document . getElementById ( "recursive" ) ; var dnaCheckbox = document . getElementById ( "queryDna" ) ; if ( barPPICheckbox . checked ) { recursiveCheckbox . disabled = false ; recursiveCheckbox . parentNode . classList . remove ( 'not-allowed' ) ; dnaCheckbox . disabled = false ; dnaCheckbox . parentNode . classList . remove ( 'not-allowed' ) ; } else { recursiveCheckbox . parentNode . classList . add ( 'not-allowed' ) ; recursiveCheckbox . disabled = true ; recursiveCheckbox . checked = false ; dnaCheckbox . parentNode . classList . add ( 'not-allowed' ) ; dnaCheckbox . disabled = true ; dnaCheckbox . checked = false ; } } ) ; }
@function enableInteractionsCheckbox - make recursive checkbox only work when BAR PPI is selected
@function enableInteractionsCheckbox - make recursive checkbox only work when BAR PPI is selected