src/hg/js/hui.js 1.59

1.59 2010/06/03 20:27:26 tdreszer
Fixed excluded filterComp options bug and made sure subtrack counts are updated with filterComp +/- buttons.
Index: src/hg/js/hui.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hui.js,v
retrieving revision 1.58
retrieving revision 1.59
diff -b -B -U 4 -r1.58 -r1.59
--- src/hg/js/hui.js	2 Jun 2010 19:16:37 -0000	1.58
+++ src/hg/js/hui.js	3 Jun 2010 20:27:26 -0000	1.59
@@ -1094,8 +1094,9 @@
     }
     if(vars.length > 0) {
         setCartVars(vars,vals);
     }
+    matSubCBsSelected(); // Be sure to update the counts!
 }
 
 function filterCompositeExcludeOptions(obj)
 { // Will mark all options in one filterComposite boxes that are inconsistent with the current
@@ -1147,14 +1148,14 @@
         if(!oneEmpty && possibleSelections.length > 0 && aryFind(possibleSelections,opts[ix].value) == -1) {
             if($(opts[ix]).hasClass('excluded') == false) {
                 $(opts[ix]).addClass('excluded');
                 updated = true;
+            }
         } else if($(opts[ix]).hasClass('excluded')) {
                 $(opts[ix]).removeClass('excluded');
                 updated = true;
             }
         }
-    }
     return updated;
 }
 
 function multiSelectFocus(obj,sizeWhenOpen)