e0c9cb5c5b9536dc3771e3fe09f3afb6ad5ad9ff
tdreszer
  Tue Jul 5 18:32:21 2011 -0700
Major performance improvements for IE javascript.  parent() and add() both dragged the JSript engine to it's knees.  Debug code is being checked in but not called.
diff --git src/hg/lib/fileUi.c src/hg/lib/fileUi.c
index 72167c6..026fa9a 100644
--- src/hg/lib/fileUi.c
+++ src/hg/lib/fileUi.c
@@ -396,31 +396,31 @@
             struct slName *term = slPopHead(&vals);
             char *tag = (char *)cvTag(var,term->name);
             if (tag == NULL)
                 tag = term->name;
             slPairAdd(&tagLabelPairs,tag,cloneString((char *)cvLabel(term->name)));
             slNameFree(&term);
             }
 
         // If there is more than one val for this var then create filterBy box for it
         if (slCount(tagLabelPairs) > 1)
             {
             slPairValSortCase(&tagLabelPairs); // should have a list sorted on the label
             char extraClasses[256];
             safef(extraClasses,sizeof extraClasses,"filterTable %s",var);
         #ifdef NEW_JQUERY
-            char *dropDownHtml = cgiMakeMultiSelectDropList(var,tagLabelPairs,NULL,"All",extraClasses,"onchange='filterTable();' onclick='filterTableExclude(this);' style='font-size:.9em;'");
+            char *dropDownHtml = cgiMakeMultiSelectDropList(var,tagLabelPairs,NULL,"All",extraClasses,"onchange='filterTable(this);' style='font-size:.9em;'");
         #else///ifndef NEW_JQUERY
             char *dropDownHtml = cgiMakeMultiSelectDropList(var,tagLabelPairs,NULL,"All",extraClasses,"onchange='filterTable();' onclick='filterTableExclude(this);'");
         #endif///ndef NEW_JQUERY
             // Note filterBox has classes: filterBy & {var}
             if (dropDownHtml)
                 {
                 dyStringPrintf(dyFilters,"<td align='left'>\n<B>%s</B>:<BR>\n%s</td><td width=10>&nbsp;</td>\n",
                                labelWithVocabLink(var,sortOrder->title[sIx],tagLabelPairs,TRUE),dropDownHtml);  // TRUE were sending tags, not values
                 freeMem(dropDownHtml);
                 count++;
                 }
             }
         if (slCount(tagLabelPairs) > 0)
             slPairFreeValsAndList(&tagLabelPairs);
         }