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/hui.js src/hg/js/hui.js index 4d6b3fd..446c99a 100644 --- src/hg/js/hui.js +++ src/hg/js/hui.js @@ -62,31 +62,30 @@ this.checked = true; matSubCBsetShadow(this,true); // will update "subCfg" if needed hideOrShowSubtrack(this); }); }); } // If no matrix, then enabling is all that was needed. // fix 3-way which may need to go from unchecked to .disabled var matCBs = $("input.matCB").not(".abc").not(".disabled").not(":checked"); if(matCBs.length > 0) { $( matCBs ).each( function (i) { matChkBoxNormalize( this, classesHidden ); }); } } } // fix 3-way matCBs which may need to go from disabled to checked or unchecked depending - var matCBs = $("input.matCB").not(":checked").not(".disabled"); var matCBs = matCBsWhichAreComplete(false); if(matCBs.length > 0) { if($("select.viewDD").not("[selectedIndex=0]").length = 0) { // No views visible so nothing is inconsistent $( matCBs ).each( function (i) { matCbComplete( this, true ); }); } else { $( matCBs ).each( function (i) { matChkBoxNormalize( this, classesHidden ); }); } } matSubCBsSelected(); obj.lastIndex = obj.selectedIndex; } function matSelectViewForSubTracks(obj,view) { waitOnFunction( _matSelectViewForSubTracks, obj,view); @@ -1297,31 +1296,32 @@ } } } } // The following js depends upon the jQuery library $(document).ready(function() { mat.init(); if (normed($('table.subtracks')) != undefined) { matInitializeMatrix(); // If divs with class 'subCfg' then initialize the subtrack cfg code // NOTE: must be before any ddcl setup - if (typeof(subCfg) !== "undefined" && normed($("div.subCfg")) != undefined) { + if (typeof(subCfg) !== "undefined" + && (normed($("div.subCfg")) != undefined || normed($("div.subVisDD")))) { subCfg.initialize(); } } // Initialize sortable tables $('table.sortable').each(function (ix) { sortTableInitialize(this,true,true); }); // Register tables with drag and drop $("table.tableWithDragAndDrop").each(function (ix) { tableDragAndDropRegister(this); }); // Put navigation links in top corner