2c490be22be64cd849187a98c2db5e0c20000331 larrym Mon Jan 3 12:37:47 2011 -0800 add setCheckboxList diff --git src/hg/js/utils.js src/hg/js/utils.js index 4beafa9..879dc1a 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -1576,15 +1576,23 @@ sortedTableAlternateColors(tbody); // Highlight rows? But on subtrack list, this will mess up the "..." coloring. So just exclude tables with drag and drop if ($(table).hasClass('tableWithDragAndDrop') == false) { $('tbody.sortable').find('tr').hover( function(){ $(this).addClass('bgLevel3'); }, // Will highlight the rows function(){ $(this).removeClass('bgLevel3');} ); } // Finally, make visible $(tbody).removeClass('sorting'); $(tbody).show(); } +function setCheckboxList(list, value) +{ +// set value of all checkboxes in semicolon delimited list + var names = list.split(";"); + for(var i=0;i<names.length;i++) { + $("input[name='" + names[i] + "']").attr('checked', value); + } +}