b2d472356885e115a2f9fe9a8229da4339f71e1a
tdreszer
  Fri Aug 5 14:14:28 2011 -0700
Fixed the grabbing (closed) hand/dragMask for IE and removed the grabber (open) hand, again for IE.  Setting the grabber cursor overrode the map item pointers.
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 53d2ade..bf25fe8 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -986,32 +986,32 @@
     }
 
     // globals across all panImages
     portalWidth     = $(pan).width();
     // globals to one panImage
     var newX        = 0;
     var mouseDownX  = 0;
     var mouseIsDown = false;
     var beyondImage = false;
     var atEdge      = false;
 
     initialize();
 
     function initialize(){
 
-        pan.css('cursor',"url(../images/grabbing.cur)"); // Trick to preload
-        pan.css('cursor',"url(../images/grabber.cur),w-resize");
+        if ( !($.browser.msie) ) // IE will override map items cursors as well!
+            $(pan).parents('td.tdData').css('cursor',"url(../images/grabber.cur),w-resize");
 
         pan.mousedown(function(e){
              if (e.which > 1 || e.button > 1 || e.shiftKey || e.ctrlKey)
                  return true;
             if(mouseIsDown == false) {
                 mouseIsDown = true;
                 mouseDownX = e.clientX;
                 atEdge = (!beyondImage && (prevX >= leftLimit || prevX <= rightLimit));
                 $(document).bind('mousemove',panner);
                 $(document).bind( 'mouseup', panMouseUp);  // Will exec only once
                 return false;
             }
         });
     }
 
@@ -1210,40 +1210,38 @@
                             $(btn).parent().height( span.bottom - span.top + titlePx);
                             $(btn).css( {'top': top.toString() + "px" });
                         }
                     }
                 }
             }
         });
     }
 
     function dragMaskShow() {   // Sets up the waitMask to block page manipulation until cleared
 
         var imgTbl = $('#imgTbl');
         // Find or create the waitMask (which masks the whole page)
         var  dragMask = $('div#dragMask');
         if( dragMask == undefined || dragMask.length == 0) {
-            $(imgTbl).prepend("<div id='dragMask' class='waitMask'></div>");
+            $("body").prepend("<div id='dragMask' class='waitMask'></div>");
             dragMask = $('div#dragMask');
         }
 
-        $('body').css('cursor','not-allowed')
+        $('body').css('cursor','not-allowed');
         $(dragMask).css('cursor',"url(../images/grabbing.cur),w-resize");
-        //$(dragMask).css({opacity:0.4,backgroundColor:'gray'}); // temporarily so I can see it
-        $(dragMask).css({display:'block',zIndex:5,top: $(imgTbl).position().top, height: $(imgTbl).height() + 'px' });
-
-        return dragMask;  // The caller could add css if they wanted.
+        $(dragMask).css({opacity:0.0,display:'block',top: $(imgTbl).position().top.toString() + 'px', height: $(imgTbl).height().toString() + 'px' });
+        //$(dragMask).css({opacity:0.4,backgroundColor:'gray',zIndex:999}); // temporarily so I can see it
     }
 
     function dragMaskClear() {        // Clears the waitMask
         $('body').css('cursor','auto')
         var  dragMask = $('#dragMask');
         if( dragMask != undefined )
             $(dragMask).hide();
     }
 
 
 
 };
 
 /////////////////////////////////////////////////////