4c15f3e254d1e9c7cb3c4dca17f2808c07dbdb4f tdreszer Thu Jul 7 17:52:25 2011 -0700 Moved all ddcl extension code into a ddcl object in ddcl.js. Reworked filterComp code to be more like filterTable code since IE was getting timeouts on HAIB TFBS. diff --git src/hg/js/ddcl.js src/hg/js/ddcl.js new file mode 100644 index 0000000..894873b --- /dev/null +++ src/hg/js/ddcl.js @@ -0,0 +1,329 @@ +// The "ddcl" object that contains all the DDCL extension/support code. +// DDCL: drop-down checkbox-list wrapper code to ui.dropdownchecklist.js jQuery widget. +// The reason for extension/support code beyond the jquery widget is that +// We have changed some widget functionality: +// - Closed control show all currently selected options in multiple lines with CSS +// - Open control can gray out invalid choices + +// NOTE: +// Currently tied to ui.dropdownchecklist.js v1.3, with 2 "UCSC" changes: +// - Chrome multi-select required changing ddcl code as per issue 176. +// - IE needed special code to block window.resize event in DDCL. +// *** v1.4 has been released which works with jquery 1.6.1 *** + +// Some useful names defined: +// ddcl: This object just contains these supporting functions in one package. +// multiSelect: original