src/hg/lib/hui.c 1.188

1.188 2009/04/24 19:13:41 tdreszer
Fix for min score being the same as trackDb default score, and eliminate drag and drop hint when cursor is over longLabel
Index: src/hg/lib/hui.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hui.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -b -B -U 4 -r1.187 -r1.188
--- src/hg/lib/hui.c	23 Apr 2009 22:42:28 -0000	1.187
+++ src/hg/lib/hui.c	24 Apr 2009 19:13:41 -0000	1.188
@@ -2920,9 +2920,9 @@
                         (dimensions[dimY]?dimensions[dimY]->tag:NULL),
                         (dimensions[dimZ]?dimensions[dimZ]->tag:NULL),membership); // view is known tag
             printf("<TR valign='top' BGCOLOR=\"%s\"",colors[colorIx]);
             if(useDragAndDrop)
-                printf(" class='trDraggable' title='Drag to Reorder' onmouseover=\"hintForDraggableRow(this)\"");
+                printf(" class='trDraggable' title='Drag to Reorder'");
 
             printf(" id=\"tr_%s\" nowrap%s>\n<TD>",id,(selectedOnly?" style='display:none'":""));
             dyStringClear(dyHtml);
             dyStringPrintf(dyHtml, "onclick='matSubtrackCbClick(this);' onmouseover=\"this.style.cursor='default';\" class=\"subtrackCB");
@@ -2968,9 +2968,9 @@
                 else
                     printf("%s\n",subtrack->shortLabel);
                 puts ("</TD>");
                 }
-            printf ("<TD nowrap='true'><div onmouseover=\"this.style.cursor='text';\">&nbsp;%s", subtrack->longLabel);
+            printf ("<TD nowrap='true' title='select to copy' onmouseover=\"this.style.cursor='text';\"><div>&nbsp;%s", subtrack->longLabel);
             if(trackDbSetting(parentTdb, "wgEncode") && trackDbSetting(subtrack, "accession"))
                 printf (" [GEO:%s]", trackDbSetting(subtrack, "accession"));
 
             metadata_t *metadata = metadataSettingGet(subtrack);
@@ -2992,12 +2992,11 @@
                     else if(!sameString(metadata->tags[ix],"subId")
                          && !sameString(metadata->tags[ix],"composite"))
                         printf("<tr onmouseover=\"this.style.cursor='text';\"><td align=right><i>%s:</i></td><td nowrap>%s</td></tr>",metadata->tags[ix],metadata->values[ix]);
                     }
-                printf("</table>--></DIV>\n");
+                printf("</table>-->\n");
                 metadataFree(&metadata);
                 }
-            else
                 printf("</div>");
 
             if(cType != cfgNone)
                 {
@@ -3324,10 +3323,10 @@
                 scoreVal = 1000;
         printf("<b>Show only items with score at or above:</b> ");
         snprintf(option, sizeof(option), "%s.%s", name,SCORE_FILTER);
         val = cartUsualIntClosestToHome(cart, tdb, compositeLevel, SCORE_FILTER,  scoreVal);
-        cgiMakeIntVarWithLimits(option, val, "Minimum score",0, 0,maxScore);
-        printf("&nbsp;&nbsp;(range: 0&nbsp;to&nbsp;%d)", maxScore);
+        cgiMakeIntVarWithLimits(option, val, "Minimum score",0, scoreVal,maxScore);
+        printf("&nbsp;&nbsp;(range: %d&nbsp;to&nbsp;%d)", scoreVal, maxScore);
         }
     }
 
 if (gotScoreMin)