0c8eae41f68f4a7e8a6fd20a0723de864621dbd8
tdreszer
  Thu Jul 7 18:56:48 2011 -0700
Since IE is so slow on giant composites, limited filterBox invalid options being grayed to only occur when there are a limited number of subtracks checked (<300) or files (<300).
diff --git src/hg/js/hui.js src/hg/js/hui.js
index 3aeee27..2b6483e 100644
--- src/hg/js/hui.js
+++ src/hg/js/hui.js
@@ -995,31 +995,31 @@
             $(obj).one('done',filterCompositeDone);
             return;
         //}
     } else
         filterCompositeTrigger();
 }
 
 function filterCompositeExcludeOptions(multiSelect)
 { // Will mark all options in one filterComposite boxes that are inconsistent with the current
   // selections in other filterComposite boxes.  Mark is class ".excluded"
     // Compare to the list of all trs
     var allSubCBs = $("input.subCB");
     if (allSubCBs.length == 0)
         return false;
 
-    if ($.browser.msie && $(allSubCBs).filter(":checked") > 300) // IE takes tooo long, so this should be called only when leaving the filterBy box
+    if ($.browser.msie && $(allSubCBs).filter(":checked").length > 300) // IE takes tooo long, so this should be called only when leaving the filterBy box
         return false;
 
     var filterClass = filterCompFilterVar(multiSelect);
     if (filterClass == undefined)
         return false;
 
     // Look at list of CBs that would be selected if all were selected for this filter
     var subCbsSelected = filterCompSubCBsSurviving(filterClass);
     if (subCbsSelected.length == 0)
         return false;
 
     if (allSubCBs.length == subCbsSelected.length) {
         $(multiSelect).children('option.excluded').removeClass('excluded');   // remove .excluded" from all
         return true;
     }