src/hg/js/hui.js 1.51

1.51 2010/04/27 00:17:23 tdreszer
Added tooltip for each matrix cell, so moved 3rd state matrix CB hint to CB only.
Index: src/hg/js/hui.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hui.js,v
retrieving revision 1.50
retrieving revision 1.51
diff -b -B -U 4 -r1.50 -r1.51
--- src/hg/js/hui.js	8 Feb 2010 22:11:26 -0000	1.50
+++ src/hg/js/hui.js	27 Apr 2010 00:17:23 -0000	1.51
@@ -140,9 +140,9 @@
 
 function matSetMatrixCheckBoxes(state)
 {
 // matButtons:onclick Set all Matrix checkboxes to state.  If additional arguments are passed in, the list of CBs will be narrowed by the classes
-    //$("body").css('cursor','wait');
+    //jQuery(this).css('cursor', 'wait');
     var matCBs = $("input.matCB").not(".abc");
     for(var vIx=1;vIx<arguments.length;vIx++) {
         matCBs = $( matCBs ).filter("."+arguments[vIx]);  // Successively limit list by additional classes.
     }
@@ -163,9 +163,9 @@
         matSubCBsetShadow(this);
     });
     showOrHideSelectedSubtracks();
     matSubCBsSelected();
-    //$("body").css('cursor','default');
+    //jQuery(this).css('cursor', '');
     return true;
 }
 
 ///////////// CB support routines ///////////////
@@ -298,13 +298,14 @@
     // 4) *[ ]* ?[ ]?  *[ ]*  No text seems right;  borders? colors? opacity? Yes, minimum
     if(complete) {
         $(matCB).css('opacity', '1');  // For some reason IE accepts direct change but isn't happy with simply adding class!
         $(matCB).removeClass('halfVis');
-        $(matCB).parent().attr("title","");
+        $(matCB).attr("title","");
     } else {
         $(matCB).css('opacity', '0.5');
         $(matCB).addClass('halfVis');
-        $(matCB).parent().attr("title","Not all associated subtracks have been selected");
+        $(matCB).attr("title","Not all associated subtracks have been selected");
+        $('.halfVis').css('opacity', '0.5');
     }
 }
 
 function matCBsWhichAreComplete(complete)
@@ -934,14 +935,14 @@
 function matInitializeMatrix()
 {
 // Called at Onload to coordinate all subtracks with the matrix of check boxes
 //var start = startTiming();
-//document.body.style.cursor="wait";
+jQuery('body').css('cursor', 'wait');
     if (document.getElementsByTagName) {
         matSubCBsSelected();
         showOrHideSelectedSubtracks();
     }
-//document.body.style.cursor="default";
+jQuery('body').css('cursor', '');
 //showTiming(start,"matInitializeMatrix()");
 }
 
 function multiSelectLoad(div,sizeWhenOpen)
@@ -1010,5 +1011,6 @@
             function(){if($(this).hasClass('trDrag') == false) $(this).addClass('pale');},
             function(){$(this).removeClass('pale');}
         );
     }
+    $('.halfVis').css('opacity', '0.5'); // The 1/2 opacity just doesn't get set from cgi!
 });