online/src/js/dropdowns.js
function trackCheckbox (checkbox) {
  checkbox.on("change", function () {
    var value = checkbox.is(":checked") ? 1 : 0;
    analytics.trackEvent("options", "changed", checkbox.attr("name"), value);
  });
}
function trackCheckbox (checkbox) {
  checkbox.on("change", function () {
    var value = checkbox.is(":checked") ? 1 : 0;
    analytics.trackEvent("options", "changed", checkbox.attr("name"), value);
  });
}
function trackCheckbox ( checkbox ) { checkbox . on ( "change" , function ( ) { var value = checkbox . is ( ":checked" ) ? 1 : 0 ; analytics . trackEvent ( "options" , "changed" , checkbox . attr ( "name" ) , value ) ; } ) ; }
Tracks changes to a checkbox option

@param {jQuery} checkbox
Tracks changes to a checkbox option