src/hg/js/hui.js 1.42
1.42 2009/10/30 17:11:10 tdreszer
Fixed bug that left matCB indeterminate though no subtracks match state.
Index: src/hg/js/hui.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hui.js,v
retrieving revision 1.41
retrieving revision 1.42
diff -b -B -U 4 -r1.41 -r1.42
--- src/hg/js/hui.js 26 Oct 2009 23:05:47 -0000 1.41
+++ src/hg/js/hui.js 30 Oct 2009 17:11:10 -0000 1.42
@@ -126,12 +126,12 @@
else
alert("ASSERT in matCbClick(): There should be no more than 2 entries in list:"+classList)
if(isZee) { // if dimZ then we may have just made indeterminate X and Ys determinate
- if(matCB.checked == false) { // checking new dimZs cannot change indeterminate state.
+ if(matCB.checked == false) { // checking new dimZs cannot change indeterminate state. IS THIS TRUE ? So far.
var matCBs = matCBsWhichAreComplete(false);
if(matCBs.length > 0) {
- if($("input.matCB.dimZ:checked").length == 0)
+ if($("input.matCB.dimZ:checked").length == 0) // No dimZ checked, so leave X&Y checked but determined
$( matCBs ).each( function (i) { matCbComplete( this, true ); });
else {
var classes = matViewClasses('hidden');
classes = classes.concat( matZeeCBclasses('unchecked') );
@@ -284,8 +284,10 @@
$(matCB).attr('checked',true);
}
}
}
+ else
+ matCbComplete(matCB,true); // If no subs match then this is determined !
}
function matChkBoxesNormalizeAll()
{