5d60824708b39a638c79a5d228003d3959c727e5 tdreszer Wed Dec 7 10:15:43 2011 -0800 subCfg was not getting initialized if there were no subCfgs. But subVis should also kick this off. diff --git src/hg/js/subCfg.js src/hg/js/subCfg.js index 9b24604..ee87fa1 100644 --- src/hg/js/subCfg.js +++ src/hg/js/subCfg.js @@ -465,31 +465,31 @@ } else { // First get composite vis to limit with var compObj = subCfg.compositeObjFind(undefined); if (compObj == undefined) { warn('DEBUG: Could not find composite vis object!'); return false; } subCfg.propagateViewVis(parentObj,compObj.selectedIndex); } }, inheritSetting: function (childObj,force) { // update value if parents values override child values. var myParents = subCfg.parentsFind(childObj); if (myParents == undefined || myParents.length < 1) { - warn('DEBUG: No parents were found for childObj: '+childObj.name); + //warn('DEBUG: No parents were found for childObj: '+childObj.name); // Not really a problem. return true; } var isVis = (undefined == subCfg.objSuffixGet(childObj)); if (isVis) { var subCb = subCfg.subCbFind(childObj); if (subCb != undefined) { var limitedVis = 9; if (myParents.length == 1 && (force || subCfg.hasChanged(myParents[0]))) limitedVis = myParents[0].selectedIndex; else if (myParents.length == 2) { if (force || subCfg.hasChanged(myParents[0]) || subCfg.hasChanged(myParents[1])) limitedVis = Math.min(myParents[0].selectedIndex,myParents[1].selectedIndex); } if (limitedVis < 9) $(childObj).attr('selectedIndex',limitedVis);