src/hg/js/hui.js 1.44

1.44 2009/12/07 19:17:09 tdreszer
Fix for bug Katrina found. All plus/minus buttons were failing when no matrix exists
Index: src/hg/js/hui.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hui.js,v
retrieving revision 1.43
retrieving revision 1.44
diff -b -B -U 4 -r1.43 -r1.44
--- src/hg/js/hui.js	11 Nov 2009 22:06:42 -0000	1.43
+++ src/hg/js/hui.js	7 Dec 2009 19:17:09 -0000	1.44
@@ -179,9 +179,9 @@
 
     if(state) { // If checking subCBs, then make sure up to 3 dimensions of matCBs agree with each other on subCB verdict
         var classes = matAbcCBclasses('unchecked');
         subCBs = objsFilterByClasses(subCBs,false,classes);  // remove unchecked abcCB classes
-        if(arguments.length == 3) { // Requested dimX&Y: check dim ABC state
+        if(arguments.length == 1 || arguments.length == 3) { // Requested dimX&Y: check dim ABC state
             $( subCBs ).each( function (i) { matSubCBcheckOne(this,state); });
         } else {//if(arguments.length == 2) { // Requested dim ABC (or only 1 dimension so this code is harmless)
             var matXY = $("input.matCB").not(".abc");  // check X&Y state
             matXY = $( matXY ).filter(":checked");