metreex-analysis.js
/**
 * Inverts the checked value of all checkboxes within a tab.
 * Assumes checkboxes are given an HTML attribute 'name' built as "tabName + 'Checkbox'"
 * @param {String} tabName Name of tab prefix given to checkboxes. First part of "tabName + 'Checkbox'"
 */
Inverts the checked value of all checkboxes within a tab.
Assumes checkboxes are given an HTML attribute 'name' built as "tabName + 'Checkbox'"
@param {String} tabName Name of tab prefix given to checkboxes. First part of "tabName + 'Checkbox'"
Inverts the checked value of all checkboxes within a tab . Assumes checkboxes are given an HTML attribute ' name ' built as " tabName + ' Checkbox ' " @param { String } tabName Name of tab prefix given to checkboxes . First part of " tabName + ' Checkbox ' "
function invertAllCheckboxesInTab(tabName){
    var cboxes = document.getElementsByName(tabName + "Checkbox");
    Array.prototype.slice.call(cboxes).forEach(function (cbox) {
        cbox.checked = !cbox.checked;
    });
}
function invertAllCheckboxesInTab ( tabName ) { var cboxes = document . getElementsByName ( tabName + "Checkbox" ) ; Array . prototype . slice . call ( cboxes ) . forEach ( function ( cbox ) { cbox . checked = ! cbox . checked ; } ) ; }
Inverts the checked value of all checkboxes within a tab.
Inverts the checked value of all checkboxes within a tab .