3fc4985e0565e8d601746484ed273cf353467a60
tdreszer
  Wed Jul 28 13:59:53 2010 -0700
Finally got dragReorder row highlighting working
diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c
index 57f13f5..efc4b1c 100644
--- src/hg/hgTracks/imageV2.c
+++ src/hg/hgTracks/imageV2.c
@@ -1518,14 +1518,15 @@
         hPrintf("  <A HREF='%s'",slice->link);
     if (slice->title != NULL)
         {
+        if (imgTrack->reorderable && sliceType == stButton)
+            {
         char *newLine = " &#x0A;";
         if (cgiClientBrowser(NULL,NULL,NULL) == btFF)
             newLine = " - "; // FF does not support newline code!
-
-        if (imgTrack->reorderable && sliceType == stButton)
             hPrintf(" TITLE='Click for:%s%s%s(drag to reorder)'", newLine,htmlEncode(slice->title),newLine );
+            }
         else
-            hPrintf(" TITLE='Click for:%s%s'", newLine,htmlEncode(slice->title) );
+            hPrintf(" TITLE='Click for: &#x0A;%s'", htmlEncode(slice->title) );
         }
     hPrintf(">\n" );
     }
@@ -1560,7 +1561,7 @@
 #endif//def IMAGEv2_DRAG_REORDER
 hPrintf("<style type='text/css'>\n");
 #ifdef IMAGEv2_DRAG_REORDER
-hPrintf(".trDrag {opacity:0.4; padding:1px; background-color:red;}\n");// outline:red solid thin;}\n"); // opacity for FF, padding/bg for IE
+hPrintf(".trDrag {background-color:#ccFFcc;}\n");// outline:red solid thin;}\n"); // opacity for FF, padding/bg for IE
 hPrintf(".dragHandle {cursor: s-resize;}\n");
 #endif//def IMAGEv2_DRAG_REORDER
 #ifdef FLAT_TRACK_LIST
@@ -1633,13 +1634,7 @@
         // leftLabel
         safef(name,sizeof(name),"side_%s",trackName);
         if (imgTrack->reorderable)
-            {
-            char *newLine = " &#x0A;";
-            if (cgiClientBrowser(NULL,NULL,NULL) == btFF)
-                newLine = " - "; // FF does not support!  Use "&#124;" for '|' instead
-
-            hPrintf(" <TD id='td_%s' class='dragHandle' title='Drag to reorder:%s%s'>\n",name,newLine,htmlEncode(imgTrack->tdb->longLabel));
-            }
+            hPrintf(" <TD id='td_%s' class='dragHandle' title='Drag to reorder: &#x0A;%s'>\n",name,htmlEncode(imgTrack->tdb->longLabel));
         else
             hPrintf(" <TD id='td_%s'>\n",name);
         sliceAndMapDraw(imgBox,imgTrack,stSide,name,FALSE);