be4311c07e14feb728abc6425ee606ffaa611a58 markd Fri Jan 22 06:46:58 2021 -0800 merge with master diff --git src/hg/js/hui.js src/hg/js/hui.js index 5444e71..4255b3e 100644 --- src/hg/js/hui.js +++ src/hg/js/hui.js @@ -307,33 +307,34 @@ matSubCBsetShadow(subCB,false); $(subCB).change(); // NOTE: if "subCfg" then 'change' event will update it hideOrShowSubtrack(subCB); } } function matSubCBsetShadow(subCB,triggerChange) { // Since CBs only get into cart when enabled/checked, // the shadow control enables cart to know other states // will update "subCfg" if needed var shadowState = 0; if (subCB.checked) shadowState = 1; if (isFauxDisabled(subCB,true)) shadowState -= 2; - var fourWay = normed($("input.cbShadow#boolshad\\."+subCB.id)); + var noDot = subCB.id.replace(/\./g, "\\."); + var fourWay = normed($("input.cbShadow#boolshad\\."+noDot)); if (!fourWay) { - warn("DEBUG: Failed to find fourWay shadow for '#"+subCB.id); + warn("DEBUG: Failed to find fourWay shadow for '#"+noDot); return; } if ($(fourWay).val() !== shadowState.toString()) { $(fourWay).val(shadowState); if (typeof(subCfg) === "object") { // Is subCfg.js file included subCfg.enableCfg(subCB,(shadowState === 1)); if (triggerChange) $(subCB).change(); // 'change' event will update "subCfg" } } } function matChkBoxNormalize(matCB) { // Makes sure matCBs are in one of 3 states (checked,unchecked,indeterminate) // based on matching set of subCBs