5d200e48ab46ac1ddc089098defedae030e6a6bf tdreszer Tue Jul 27 15:18:33 2010 -0700 Slight improvements to dragReorder: toolTips and hover highlighting diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c index 2c32451..57f13f5 100644 --- src/hg/hgTracks/imageV2.c +++ src/hg/hgTracks/imageV2.c @@ -5,6 +5,7 @@ #include "hdb.h" #include "hui.h" #include "jsHelper.h" +#include "cheapcgi.h" #include "htmshell.h" #include "imageV2.h" #include "hgTracks.h" @@ -1516,7 +1517,16 @@ else hPrintf(" link); if(slice->title != NULL) - hPrintf(" TITLE='Click for %s'", htmlEncode(slice->title) ); + { + char *newLine = " "; + 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(">\n" ); } @@ -1622,8 +1632,16 @@ hPrintf("\n"); // leftLabel safef(name,sizeof(name),"side_%s",trackName); - hPrintf("