src/hg/js/hui.js 1.48
1.48 2010/02/01 18:19:41 tdreszer
Changes to speed up matrix buttons
Index: src/hg/js/hui.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hui.js,v
retrieving revision 1.47
retrieving revision 1.48
diff -b -B -U 4 -r1.47 -r1.48
--- src/hg/js/hui.js 4 Jan 2010 19:12:27 -0000 1.47
+++ src/hg/js/hui.js 1 Feb 2010 18:19:41 -0000 1.48
@@ -147,12 +147,16 @@
}
$( matCBs ).each( function (i) {
this.checked = state;
matCbComplete(this,true);
- matCbClick(this); // If this is inefficient, then replace it with subCB iteration logic below
});
-
- //matSubCBsSelected(); // this would be a redudnant call if matCbClick() is called
+ subCDs = $("input.subCB");
+ for(var vIx=1;vIx<arguments.length;vIx++) {
+ subCDs = $( subCDs ).filter("."+arguments[vIx]); // Successively limit list by additional classes.
+ }
+ $( subCDs ).attr('checked',state);
+ showOrHideSelectedSubtracks();
+ matSubCBsSelected();
return true;
}
///////////// CB support routines ///////////////
@@ -303,9 +307,9 @@
}
function matCbComplete(matCB,complete)
{
-// Makes aore removes the 3rd (indeterminate) matCB state
+// Makes or removes the 3rd (indeterminate) matCB state
// Too many options:
// 1) addClass()/removeClass() (which does not directly support title)
// 2) wrap div which could contain border, color, content. content is not on one line: size is difficult
// 3) wrap font which could contain border, color, content. content is on one line: size is difficult